7 #define WIN32_NO_STATUS
10 #include <ndk/ntndk.h>
13 //#include <csr/server.h>
15 /* PSEH for SEH Support */
16 #include <pseh/pseh2.h>
18 /* Subsystem Manager Header */
19 #include <sm/helper.h>
22 /* Internal CSRSS Headers */
24 #include <csrplugin.h>
26 extern HANDLE CsrHeap
;
29 L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Session Manager"
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"\\"
39 #define ROUND_UP(n, align) ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
40 #define ROUND_DOWN(n, align) (((ULONG)n) & ~((align) - 1l))