VOID
);
+ULONG
+NTAPI
+ObIsLUIDDeviceMapsEnabled(
+ VOID
+);
+
//
// Security descriptor cache functions
//
extern ULONG ObpObjectSecurityMode;
extern ULONG ObpProtectionMode;
extern ULONG ObpLUIDDeviceMapsDisabled;
+extern ULONG ObpLUIDDeviceMapsEnabled;
//
// Inlined Functions
#define NDEBUG
#include <debug.h>
+ULONG ObpLUIDDeviceMapsDisabled;
+ULONG ObpLUIDDeviceMapsEnabled;
+
/* PRIVATE FUNCTIONS ******************************************************/
NTSTATUS
}
+ULONG
+NTAPI
+ObIsLUIDDeviceMapsEnabled(VOID)
+{
+ return ObpLUIDDeviceMapsEnabled;
+}
+
+
#if 0
NTSTATUS
NTAPI
#define NDEBUG
#include <debug.h>
-BOOLEAN ObpLUIDDeviceMapsEnabled;
POBJECT_TYPE ObpDirectoryObjectType = NULL;
/* PRIVATE FUNCTIONS ******************************************************/
PAGED_CODE();
/* Check if we should search the shadow directory */
- if (!ObpLUIDDeviceMapsEnabled) SearchShadow = FALSE;
+ if (ObpLUIDDeviceMapsEnabled == 0) SearchShadow = FALSE;
/* Fail if we don't have a directory or name */
if (!(Directory) || !(Name)) goto Quickie;
WCHAR ObpUnsecureGlobalNamesBuffer[128] = {0};
ULONG ObpUnsecureGlobalNamesLength = sizeof(ObpUnsecureGlobalNamesBuffer);
-ULONG ObpLUIDDeviceMapsDisabled;
-ULONG ObpLUIDDeviceMapsEnabled;
-
/* PRIVATE FUNCTIONS *********************************************************/
INIT_FUNCTION
/* Protect write in SEH */
_SEH2_TRY
{
- /* Return FALSE -- we don't support this */
- *(PULONG)ProcessInformation = FALSE;
+ /* Query Ob */
+ *(PULONG)ProcessInformation = ObIsLUIDDeviceMapsEnabled();
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{