ReactOS  0.4.15-dev-2704-gd5265b0
basesrv.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Base API Server DLL
4  * FILE: subsystems/win/basesrv/basesrv.h
5  * PURPOSE: Main header - Definitions
6  * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
7  */
8 
9 #ifndef __BASESRV_H__
10 #define __BASESRV_H__
11 
12 /* PSDK/NDK Headers */
13 #include <stdio.h>
14 #define WIN32_NO_STATUS
15 #define _INC_WINDOWS
16 #define COM_NO_WINDOWS_H
17 #include <windef.h>
18 #include <winbase.h>
19 #include <dbt.h>
20 #define NTOS_MODE_USER
21 #include <ndk/rtlfuncs.h>
22 #include <ndk/obfuncs.h>
23 #include <ndk/psfuncs.h>
24 #include <ndk/exfuncs.h>
25 #include <ndk/umfuncs.h>
26 #include <ndk/cmfuncs.h>
27 #include <ndk/sefuncs.h>
28 
29 /* PSEH for SEH Support */
30 #include <pseh/pseh2.h>
31 
32 /* CSRSS Header */
33 #include <csr/csrsrv.h>
34 
35 /* BASE Headers */
36 #include <win/basemsg.h>
37 #include <win/base.h>
38 
40 {
44 
45 /* FIXME: BASENLS.H */
48 
51  ULONG FileNameSize);
52 
53 typedef BOOL (WINAPI *PGET_NLS_SECTION_NAME)(UINT CodePage,
54  UINT Base,
55  ULONG Unknown,
56  LPWSTR BaseName,
57  LPWSTR Result,
58  ULONG ResultSize);
59 
63  IN ULONG AceType);
64 
65 /* Globals */
66 extern HANDLE BaseSrvHeap;
69 extern ULONG SessionId;
70 extern ULONG ProtectionMode;
72 
73 #define SM_REG_KEY \
74  L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Session Manager"
75 
76 #endif /* __BASESRV_H__ */
PBASE_STATIC_SERVER_DATA BaseStaticServerData
Definition: dllmain.c:19
signed char * PCHAR
Definition: retypes.h:7
#define IN
Definition: typedefs.h:39
struct _BASESRV_KERNEL_IMPORTS BASESRV_KERNEL_IMPORTS
HANDLE BaseSrvSharedHeap
Definition: init.c:30
IN BOOLEAN OUT PSTR Buffer
Definition: progress.h:34
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2386
BOOL(WINAPI * PGET_CP_FILE_NAME_FROM_REGISTRY)(UINT CodePage, LPWSTR FileName, ULONG FileNameSize)
Definition: basesrv.h:49
uint16_t * PWCHAR
Definition: typedefs.h:56
#define BOOL
Definition: nt_native.h:43
BOOL(WINAPI * PVALIDATE_LOCALE)(IN ULONG LocaleId)
Definition: basesrv.h:60
NTSTATUS(WINAPI * PCREATE_NLS_SECURTY_DESCRIPTOR)(IN PVOID Buffer, IN ULONG BufferSize, IN ULONG AceType)
Definition: basesrv.h:61
ULONG SessionId
Definition: dllmain.c:28
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
struct _BASESRV_KERNEL_IMPORTS * PBASESRV_KERNEL_IMPORTS
NTSTATUS(WINAPI * POPEN_DATA_FILE)(HANDLE hFile, PWCHAR FileName)
Definition: basesrv.h:46
#define WINAPI
Definition: msvc.h:6
BOOL(WINAPI * PGET_NLS_SECTION_NAME)(UINT CodePage, UINT Base, ULONG Unknown, LPWSTR BaseName, LPWSTR Result, ULONG ResultSize)
Definition: basesrv.h:53
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PCUNICODE_STRING _In_ PCUNICODE_STRING _In_ LCID LocaleId
Definition: wdfpdo.h:430
ULONG ProtectionMode
Definition: init.c:34
#define NTSTATUS
Definition: precomp.h:20
_In_ HANDLE hFile
Definition: mswsock.h:90
static const ACEFLAG AceType[]
Definition: security.c:2259
struct _FileName FileName
Definition: fatprocs.h:893
HANDLE BaseSrvHeap
Definition: init.c:29
PVOID * FunctionPointer
Definition: basesrv.h:42
unsigned int UINT
Definition: ndis.h:50
unsigned int ULONG
Definition: retypes.h:1
RTL_CRITICAL_SECTION BaseSrvDDDBSMCritSec
Definition: dosdev.c:27
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define BufferSize
Definition: mmc.h:75