1 /* $Id: internal.h,v 1.8 2004/07/12 10:33:04 weiden Exp $
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS system libraries
5 * FILE: lib/userenv/internal.h
6 * PURPOSE: internal stuff
7 * PROGRAMMER: Eric Kohl
15 DebugPrint (char* fmt
,...);
17 #define DPRINT1 DebugPrint("(%s:%d) ",__FILE__,__LINE__), DebugPrint
18 #define CHECKPOINT1 do { DebugPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
21 #define DPRINT(args...)
29 CopyDirectory (LPCWSTR lpDestinationPath
,
30 LPCWSTR lpSourcePath
);
33 CreateDirectoryPath (LPCWSTR lpPathName
,
34 LPSECURITY_ATTRIBUTES lpSecurityAttributes
);
37 RemoveDirectoryPath (LPCWSTR lpPathName
);
40 typedef struct _DYN_FUNCS
48 HRESULT (STDCALL
*CoInitialize
)(LPVOID pvReserved
);
49 HRESULT (STDCALL
*CoCreateInstance
)(REFCLSID rclsid
, LPUNKNOWN pUnkOuter
, DWORD dwClsContext
, REFIID riid
, LPVOID
* ppv
);
50 HRESULT (STDCALL
*CoUninitialize
)(VOID
);
53 } DYN_FUNCS
, *PDYN_FUNCS
;
55 typedef struct _DYN_MODULE
57 LPWSTR Library
; /* dll file name */
58 LPSTR Functions
[]; /* function names */
59 } DYN_MODULE
, *PDYN_MODULE
;
61 extern DYN_MODULE DynOle32
;
64 LoadDynamicImports(PDYN_MODULE Module
, PDYN_FUNCS DynFuncs
);
67 UnloadDynamicImports(PDYN_FUNCS DynFuncs
);
70 AppendBackslash (LPWSTR String
);
73 GetUserSidFromToken (HANDLE hToken
,
74 PUNICODE_STRING SidString
);
78 AppendSystemPostfix (LPWSTR lpName
,
83 CreateUserHive (LPCWSTR lpKeyName
);
85 #endif /* _INTERNAL_H */