From 0ded881f1fb8cb6138f32aa12a3f6852b9890f7a Mon Sep 17 00:00:00 2001 From: Casper Hornstrup Date: Sun, 15 Aug 2004 21:39:59 +0000 Subject: [PATCH] Simplify precomp.h. svn path=/trunk/; revision=10563 --- reactos/lib/userenv/precomp.h | 86 +++-------------------------------- 1 file changed, 6 insertions(+), 80 deletions(-) diff --git a/reactos/lib/userenv/precomp.h b/reactos/lib/userenv/precomp.h index 8af0540d088..0c579e8840c 100644 --- a/reactos/lib/userenv/precomp.h +++ b/reactos/lib/userenv/precomp.h @@ -1,83 +1,9 @@ -#ifndef __USERENV_PRECOMP_H -#define __USERENV_PRECOMP_H - +#include +#include +#include +#include +#include #define NTOS_MODE_USER #include -#include #include -#include -#include - -/* debug.h */ -void -DebugPrint (char* fmt,...); - -#define DPRINT1 DebugPrint("(%s:%d) ",__FILE__,__LINE__), DebugPrint -#define CHECKPOINT1 do { DebugPrint("%s:%d\n",__FILE__,__LINE__); } while(0); - -#ifdef __GNUC__ -#define DPRINT(args...) -#else -#define DPRINT -#endif /* __GNUC__ */ -#define CHECKPOINT - -/* directory.c */ -BOOL -CopyDirectory (LPCWSTR lpDestinationPath, - LPCWSTR lpSourcePath); - -BOOL -CreateDirectoryPath (LPCWSTR lpPathName, - LPSECURITY_ATTRIBUTES lpSecurityAttributes); - -BOOL -RemoveDirectoryPath (LPCWSTR lpPathName); - -/* misc.c */ -typedef struct _DYN_FUNCS -{ - HMODULE hModule; - union - { - PVOID foo; - struct - { - HRESULT (STDCALL *CoInitialize)(LPVOID pvReserved); - HRESULT (STDCALL *CoCreateInstance)(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID riid, LPVOID * ppv); - HRESULT (STDCALL *CoUninitialize)(VOID); - }; - } fn; -} DYN_FUNCS, *PDYN_FUNCS; - -typedef struct _DYN_MODULE -{ - LPWSTR Library; /* dll file name */ - LPSTR Functions[]; /* function names */ -} DYN_MODULE, *PDYN_MODULE; - -extern DYN_MODULE DynOle32; - -BOOL -LoadDynamicImports(PDYN_MODULE Module, PDYN_FUNCS DynFuncs); - -VOID -UnloadDynamicImports(PDYN_FUNCS DynFuncs); - -LPWSTR -AppendBackslash (LPWSTR String); - -BOOL -GetUserSidFromToken (HANDLE hToken, - PUNICODE_STRING SidString); - -/* profile.c */ -BOOL -AppendSystemPostfix (LPWSTR lpName, - DWORD dwMaxLength); - -/* registry.c */ -BOOL -CreateUserHive (LPCWSTR lpKeyName); - -#endif /* __USERENV_PRECOMP_H */ +#include "internal.h"