extern HANDLE BaseSrvSharedHeap;
extern PBASE_STATIC_SERVER_DATA BaseStaticServerData;
extern ULONG SessionId;
+extern ULONG ProtectionMode;
+
+#define SM_REG_KEY \
+ L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Session Manager"
#endif /* __BASESRV_H__ */
PBASE_STATIC_SERVER_DATA BaseStaticServerData = NULL; // Data that we can share amongst processes. Initialized inside BaseSrvSharedHeap.
ULONG SessionId = 0;
+ULONG ProtectionMode = 0;
PINIFILE_MAPPING BaseSrvIniFileMapping;
SID_IDENTIFIER_AUTHORITY NtAuthority = {SECURITY_NT_AUTHORITY};
SID_IDENTIFIER_AUTHORITY WorldAuthority = {SECURITY_WORLD_SID_AUTHORITY};
NTSTATUS Status;
-#if 0 // Unused code
UCHAR KeyValueBuffer[0x40];
PKEY_VALUE_PARTIAL_INFORMATION KeyValuePartialInfo;
UNICODE_STRING KeyName;
- ULONG ProtectionMode = 0;
-#endif
ULONG AclLength;
-#if 0 // Unused code
ULONG ResultLength;
HANDLE hKey;
OBJECT_ATTRIBUTES ObjectAttributes;
/* Close the handle */
NtClose(hKey);
}
-#endif
/* Allocate the System SID */
Status = RtlAllocateAndInitializeSid(&NtAuthority,