94d6dfcb6af3be9aa3d626498066cc1669fe257b
[reactos.git] / subsystems / win32 / csrsrv / srv.h
1 #ifndef _SRV_H
2 #define _SRV_H
3
4 /* PSDK/NDK Headers */
5 #define NTOS_MODE_USER
6 #include <stdio.h>
7 #define WIN32_NO_STATUS
8 #include <windows.h>
9 #include <winnt.h>
10 #include <ndk/ntndk.h>
11
12 /* CSR Header */
13 //#include <csr/server.h>
14
15 /* PSEH for SEH Support */
16 #include <pseh/pseh2.h>
17
18 /* Subsystem Manager Header */
19 #include <sm/helper.h>
20 #include <sm/smmsg.h>
21
22 /* Internal CSRSS Headers */
23 #include <api.h>
24 #include <csrplugin.h>
25
26 extern HANDLE CsrHeap;
27
28 #define SM_REG_KEY \
29 L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Session Manager"
30
31 #define SESSION_ROOT L"\\Sessions"
32 #define GLOBAL_ROOT L"\\GLOBAL??"
33 #define SYMLINK_NAME L"SymbolicLink"
34 #define SB_PORT_NAME L"SbAbiPort"
35 #define CSR_PORT_NAME L"ApiPort"
36 #define UNICODE_PATH_SEP L"\\"
37
38 /* Defines */
39 #define ROUND_UP(n, align) ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
40 #define ROUND_DOWN(n, align) (((ULONG)n) & ~((align) - 1l))
41
42 #endif