/* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS Base API Server DLL * FILE: subsystems/win/basesrv/basesrv.h * PURPOSE: Main header - Definitions * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr) */ #ifndef __BASESRV_H__ #define __BASESRV_H__ /* PSDK/NDK Headers */ #include #define WIN32_NO_STATUS #define _INC_WINDOWS #define COM_NO_WINDOWS_H #include #include #include #define NTOS_MODE_USER #include #include #include #include #include #include #include /* PSEH for SEH Support */ #include /* CSRSS Header */ #include /* BASE Headers */ #include #include typedef struct _BASESRV_KERNEL_IMPORTS { PCHAR FunctionName; PVOID* FunctionPointer; } BASESRV_KERNEL_IMPORTS, *PBASESRV_KERNEL_IMPORTS; /* FIXME: BASENLS.H */ typedef NTSTATUS (WINAPI *POPEN_DATA_FILE)(HANDLE hFile, PWCHAR FileName); typedef BOOL (WINAPI *PGET_CP_FILE_NAME_FROM_REGISTRY)(UINT CodePage, LPWSTR FileName, ULONG FileNameSize); typedef BOOL (WINAPI *PGET_NLS_SECTION_NAME)(UINT CodePage, UINT Base, ULONG Unknown, LPWSTR BaseName, LPWSTR Result, ULONG ResultSize); typedef BOOL (WINAPI *PVALIDATE_LOCALE)(IN ULONG LocaleId); /* Globals */ extern HANDLE BaseSrvHeap; extern HANDLE BaseSrvSharedHeap; extern PBASE_STATIC_SERVER_DATA BaseStaticServerData; extern ULONG SessionId; extern ULONG ProtectionMode; extern RTL_CRITICAL_SECTION BaseSrvDDDBSMCritSec; #define SM_REG_KEY \ L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Session Manager" #endif /* __BASESRV_H__ */