mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
[BASESRV] Enable the ProtectionMode query code
And make it global
This commit is contained in:
parent
6e4f0365e3
commit
eea0beca35
2 changed files with 5 additions and 5 deletions
|
@ -65,5 +65,9 @@ extern HANDLE BaseSrvHeap;
|
||||||
extern HANDLE BaseSrvSharedHeap;
|
extern HANDLE BaseSrvSharedHeap;
|
||||||
extern PBASE_STATIC_SERVER_DATA BaseStaticServerData;
|
extern PBASE_STATIC_SERVER_DATA BaseStaticServerData;
|
||||||
extern ULONG SessionId;
|
extern ULONG SessionId;
|
||||||
|
extern ULONG ProtectionMode;
|
||||||
|
|
||||||
|
#define SM_REG_KEY \
|
||||||
|
L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Session Manager"
|
||||||
|
|
||||||
#endif /* __BASESRV_H__ */
|
#endif /* __BASESRV_H__ */
|
||||||
|
|
|
@ -30,6 +30,7 @@ HANDLE BaseSrvSharedHeap = NULL; // Shared heap with CSR. (CsrSrvSharedSectio
|
||||||
PBASE_STATIC_SERVER_DATA BaseStaticServerData = NULL; // Data that we can share amongst processes. Initialized inside BaseSrvSharedHeap.
|
PBASE_STATIC_SERVER_DATA BaseStaticServerData = NULL; // Data that we can share amongst processes. Initialized inside BaseSrvSharedHeap.
|
||||||
|
|
||||||
ULONG SessionId = 0;
|
ULONG SessionId = 0;
|
||||||
|
ULONG ProtectionMode = 0;
|
||||||
|
|
||||||
PINIFILE_MAPPING BaseSrvIniFileMapping;
|
PINIFILE_MAPPING BaseSrvIniFileMapping;
|
||||||
|
|
||||||
|
@ -177,14 +178,10 @@ CreateBaseAcls(OUT PACL* Dacl,
|
||||||
SID_IDENTIFIER_AUTHORITY NtAuthority = {SECURITY_NT_AUTHORITY};
|
SID_IDENTIFIER_AUTHORITY NtAuthority = {SECURITY_NT_AUTHORITY};
|
||||||
SID_IDENTIFIER_AUTHORITY WorldAuthority = {SECURITY_WORLD_SID_AUTHORITY};
|
SID_IDENTIFIER_AUTHORITY WorldAuthority = {SECURITY_WORLD_SID_AUTHORITY};
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
#if 0 // Unused code
|
|
||||||
UCHAR KeyValueBuffer[0x40];
|
UCHAR KeyValueBuffer[0x40];
|
||||||
PKEY_VALUE_PARTIAL_INFORMATION KeyValuePartialInfo;
|
PKEY_VALUE_PARTIAL_INFORMATION KeyValuePartialInfo;
|
||||||
UNICODE_STRING KeyName;
|
UNICODE_STRING KeyName;
|
||||||
ULONG ProtectionMode = 0;
|
|
||||||
#endif
|
|
||||||
ULONG AclLength;
|
ULONG AclLength;
|
||||||
#if 0 // Unused code
|
|
||||||
ULONG ResultLength;
|
ULONG ResultLength;
|
||||||
HANDLE hKey;
|
HANDLE hKey;
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
|
@ -220,7 +217,6 @@ CreateBaseAcls(OUT PACL* Dacl,
|
||||||
/* Close the handle */
|
/* Close the handle */
|
||||||
NtClose(hKey);
|
NtClose(hKey);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Allocate the System SID */
|
/* Allocate the System SID */
|
||||||
Status = RtlAllocateAndInitializeSid(&NtAuthority,
|
Status = RtlAllocateAndInitializeSid(&NtAuthority,
|
||||||
|
|
Loading…
Reference in a new issue