ReactOS 0.4.16-dev-1946-g52006dd
internal.h
Go to the documentation of this file.
1/*
2 * ReactOS kernel
3 * Copyright (C) 2004 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19/*
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS system libraries
22 * FILE: dll/win32/userenv/internal.h
23 * PURPOSE: internal stuff
24 * PROGRAMMER: Eric Kohl
25 */
26
27#ifndef _INTERNAL_H
28#define _INTERNAL_H
29
30/* directory.c */
31BOOL
32CopyDirectory(LPCWSTR lpDestinationPath,
33 LPCWSTR lpSourcePath);
34
35BOOL
37 LPSECURITY_ATTRIBUTES lpSecurityAttributes);
38
39BOOL
41
42/* misc.c */
43
46
47typedef struct _DYN_FUNCS
48{
50 union
51 {
53 struct
54 {
58 };
59 } fn;
61
62typedef struct _DYN_MODULE
63{
64 LPWSTR Library; /* dll file name */
65 LPSTR Functions[]; /* function names */
67
68extern DYN_MODULE DynOle32;
69
70BOOL
72 PDYN_FUNCS DynFuncs);
73
74VOID
76
79
82
83
84typedef struct _POLICY_VALUES
85{
91
92LONG
94 _In_ HKEY hRootKey,
96
97LONG
99 _In_ HKEY hRootKey,
104
105
106VOID
109 _In_ PCWSTR pszStr);
110
111VOID
114 _In_ PCWSTR pszStr,
116
117VOID
121 _In_ PCWSTR pszStr,
122 ...);
123
124/* profile.c */
125BOOL
127 DWORD dwMaxLength);
128
129/* registry.c */
130BOOL
131CreateUserHive(LPCWSTR lpKeyName,
132 LPCWSTR lpProfilePath);
133
134/* setup.c */
135BOOL
137 HKEY hUserKey);
138
139/* sid.c */
140BOOL
142 PUNICODE_STRING SidString);
143
144/* userenv.c */
145extern HINSTANCE hInstance;
146
147/* gpolicy.c */
148
149VOID
151
152VOID
154
155#endif /* _INTERNAL_H */
Type
Definition: Type.h:7
#define __cdecl
Definition: accygwin.h:79
#define VOID
Definition: acefi.h:82
char * va_list
Definition: acmsvcex.h:78
static LPVOID LPUNKNOWN
Definition: dinput.c:53
HINSTANCE hInstance
Definition: charmap.c:19
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
Definition: compobj.c:1964
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
Definition: compobj.c:2067
SID_IDENTIFIER_AUTHORITY WorldAuthority
Definition: misc.c:36
struct _DYN_MODULE DYN_MODULE
BOOL CopyDirectory(LPCWSTR lpDestinationPath, LPCWSTR lpSourcePath)
Definition: directory.c:82
VOID __cdecl ReportError(_In_ DWORD dwFlags, _In_ PCWSTR pszStr,...)
Definition: misc.c:481
struct _POLICY_VALUES POLICY_VALUES
LPWSTR AppendBackslash(LPWSTR String)
Definition: misc.c:41
PSECURITY_DESCRIPTOR CreateDefaultSecurityDescriptor(VOID)
Definition: misc.c:57
VOID InitializeGPNotifications(VOID)
Definition: gpolicy.c:65
struct _POLICY_VALUES * PPOLICY_VALUES
BOOL AppendSystemPostfix(LPWSTR lpName, DWORD dwMaxLength)
Definition: profile.c:20
struct _DYN_MODULE * PDYN_MODULE
BOOL CreateUserHive(LPCWSTR lpKeyName, LPCWSTR lpProfilePath)
Definition: registry.c:57
VOID ReportErrorV(_In_ DWORD dwFlags, _In_ PCWSTR pszStr, _In_ va_list args)
Definition: misc.c:469
BOOL RemoveDirectoryPath(LPCWSTR lpPathName)
Definition: directory.c:324
LONG GetPolicyValue(_In_ HKEY hRootKey, _In_ PCWSTR ValueName, _In_ DWORD Type, _Out_opt_ PVOID pData, _Inout_opt_ PDWORD pcbData)
Definition: misc.c:261
struct _DYN_FUNCS DYN_FUNCS
struct _DYN_FUNCS * PDYN_FUNCS
BOOL UpdateUsersShellFolderSettings(LPCWSTR lpUserProfilePath, HKEY hUserKey)
Definition: setup.c:434
DYN_MODULE DynOle32
Definition: misc.c:497
BOOL LoadDynamicImports(PDYN_MODULE Module, PDYN_FUNCS DynFuncs)
Definition: misc.c:515
SID_IDENTIFIER_AUTHORITY LocalSystemAuthority
Definition: misc.c:35
VOID UninitializeGPNotifications(VOID)
Definition: gpolicy.c:71
VOID UnloadDynamicImports(PDYN_FUNCS DynFuncs)
Definition: misc.c:550
LONG GetPolicyValues(_In_ HKEY hRootKey, _Inout_ PPOLICY_VALUES QueryTable)
Definition: misc.c:204
BOOL GetUserSidStringFromToken(HANDLE hToken, PUNICODE_STRING SidString)
Definition: sid.c:102
VOID ReportErrorWorker(_In_ DWORD dwFlags, _In_ PCWSTR pszStr)
Definition: misc.c:446
BOOL CreateDirectoryPath(LPCWSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
Definition: directory.c:176
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
static LPCWSTR LPVOID pvReserved
Definition: asmcache.c:749
_In_ PCWSTR _Inout_ _At_ QueryTable _Pre_unknown_ PRTL_QUERY_REGISTRY_TABLE QueryTable
Definition: rtlfuncs.h:4211
_In_ LPWSTR _In_ DWORD _In_ DWORD _In_ DWORD dwFlags
Definition: netsh.h:141
#define _Out_opt_
Definition: no_sal2.h:214
#define _Inout_
Definition: no_sal2.h:162
#define _Inout_opt_
Definition: no_sal2.h:216
#define _In_
Definition: no_sal2.h:158
DWORD * PDWORD
Definition: pedump.c:68
long LONG
Definition: pedump.c:60
#define REFIID
Definition: guiddef.h:118
#define REFCLSID
Definition: guiddef.h:117
_In_ _Out_writes_opt_ pcchValueName _Inout_opt_ LPDWORD _Out_opt_ _Out_writes_bytes_to_opt_ pcbData _Inout_opt_ LPDWORD pcbData
Definition: shlwapi.h:757
LPUNKNOWN DWORD REFIID LPVOID * ppv
Definition: internal.h:56
LPUNKNOWN DWORD dwClsContext
Definition: internal.h:56
HMODULE hModule
Definition: internal.h:49
union _DYN_FUNCS::@629 fn
LPUNKNOWN DWORD REFIID riid
Definition: internal.h:56
PVOID foo
Definition: internal.h:52
LPUNKNOWN pUnkOuter
Definition: internal.h:56
LPWSTR Library
Definition: internal.h:64
LPSTR Functions[]
Definition: internal.h:65
PCWSTR ValueName
Definition: internal.h:86
DWORD Type
Definition: internal.h:87
PVOID Data
Definition: internal.h:88
DWORD Length
Definition: internal.h:89
Definition: match.c:390
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Definition: twain.h:1830
const uint16_t * PCWSTR
Definition: typedefs.h:57
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2439
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
Definition: wdfregistry.h:243
_In_ LPCSTR lpName
Definition: winbase.h:2543
#define HRESULT
Definition: msvc.h:7
#define WINAPI
Definition: msvc.h:6
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
WCHAR * LPWSTR
Definition: xmlstorage.h:184
char * LPSTR
Definition: xmlstorage.h:182