ReactOS  0.4.15-dev-439-g292f67a
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 */
31 BOOL
32 CopyDirectory(LPCWSTR lpDestinationPath,
33  LPCWSTR lpSourcePath);
34 
35 BOOL
36 CreateDirectoryPath(LPCWSTR lpPathName,
37  LPSECURITY_ATTRIBUTES lpSecurityAttributes);
38 
39 BOOL
40 RemoveDirectoryPath(LPCWSTR lpPathName);
41 
42 /* misc.c */
43 
46 
47 typedef struct _DYN_FUNCS
48 {
50  union
51  {
53  struct
54  {
58  };
59  } fn;
61 
62 typedef struct _DYN_MODULE
63 {
64  LPWSTR Library; /* dll file name */
65  LPSTR Functions[]; /* function names */
67 
68 extern DYN_MODULE DynOle32;
69 
70 BOOL
72  PDYN_FUNCS DynFuncs);
73 
74 VOID
76 
77 LPWSTR
79 
82 
83 /* profile.c */
84 BOOL
86  DWORD dwMaxLength);
87 
88 /* registry.c */
89 BOOL
90 CreateUserHive(LPCWSTR lpKeyName,
91  LPCWSTR lpProfilePath);
92 
93 /* setup.c */
94 BOOL
95 UpdateUsersShellFolderSettings(LPCWSTR lpUserProfilePath,
96  HKEY hUserKey);
97 
98 /* sid.c */
99 BOOL
101  PUNICODE_STRING SidString);
102 
103 /* userenv.c */
104 extern HINSTANCE hInstance;
105 
106 /* gpolicy.c */
107 
108 VOID
110 
111 VOID
113 
114 #endif /* _INTERNAL_H */
#define HRESULT
Definition: msvc.h:7
SID_IDENTIFIER_AUTHORITY LocalSystemAuthority
Definition: misc.c:34
LPUNKNOWN DWORD REFIID riid
Definition: internal.h:56
#define REFIID
Definition: guiddef.h:118
LPWSTR AppendBackslash(LPWSTR String)
Definition: misc.c:40
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define REFCLSID
Definition: guiddef.h:117
BOOL CreateDirectoryPath(LPCWSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
Definition: directory.c:176
LPUNKNOWN pUnkOuter
Definition: internal.h:56
BOOL GetUserSidStringFromToken(HANDLE hToken, PUNICODE_STRING SidString)
Definition: sid.c:102
_In_ LPCSTR lpName
Definition: winbase.h:2752
static WCHAR String[]
Definition: stringtable.c:55
char * LPSTR
Definition: xmlstorage.h:182
BOOL CreateUserHive(LPCWSTR lpKeyName, LPCWSTR lpProfilePath)
Definition: registry.c:279
BOOL CopyDirectory(LPCWSTR lpDestinationPath, LPCWSTR lpSourcePath)
Definition: directory.c:82
SID_IDENTIFIER_AUTHORITY WorldAuthority
Definition: misc.c:35
LPWSTR Library
Definition: internal.h:64
union _DYN_FUNCS::@552 fn
VOID InitializeGPNotifications(VOID)
Definition: gpolicy.c:65
VOID UnloadDynamicImports(PDYN_FUNCS DynFuncs)
Definition: misc.c:259
unsigned int BOOL
Definition: ntddk_ex.h:94
static LPUNKNOWN
Definition: ndr_ole.c:49
BOOL RemoveDirectoryPath(LPCWSTR lpPathName)
Definition: directory.c:324
struct _DYN_MODULE DYN_MODULE
LPSTR Functions[]
Definition: internal.h:65
static LPCSTR DWORD void * pvReserved
Definition: str.c:196
LPUNKNOWN DWORD REFIID LPVOID * ppv
Definition: internal.h:56
#define WINAPI
Definition: msvc.h:6
PVOID foo
Definition: internal.h:52
unsigned long DWORD
Definition: ntddk_ex.h:95
#define VOID
Definition: acefi.h:82
BOOL LoadDynamicImports(PDYN_MODULE Module, PDYN_FUNCS DynFuncs)
Definition: misc.c:223
struct _DYN_FUNCS * PDYN_FUNCS
VOID UninitializeGPNotifications(VOID)
Definition: gpolicy.c:71
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
DYN_MODULE DynOle32
Definition: misc.c:204
PSECURITY_DESCRIPTOR CreateDefaultSecurityDescriptor(VOID)
Definition: misc.c:57
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
Definition: compobj.c:2067
LPUNKNOWN DWORD dwClsContext
Definition: internal.h:56
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
Definition: compobj.c:1964
struct _DYN_FUNCS DYN_FUNCS
BOOL AppendSystemPostfix(LPWSTR lpName, DWORD dwMaxLength)
Definition: profile.c:20
BOOL UpdateUsersShellFolderSettings(LPCWSTR lpUserProfilePath, HKEY hUserKey)
Definition: setup.c:434
HINSTANCE hInstance
Definition: charmap.c:20
struct _DYN_MODULE * PDYN_MODULE
WCHAR * LPWSTR
Definition: xmlstorage.h:184
HMODULE hModule
Definition: internal.h:49