#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_
/**
* Separate device maps exists for each user in the system, and each user can manage
* their own device maps. If this flag is set, the process user's device map is used
* during impersonation instead of the impersonated user's device map.
*/
#define OBJ_IGNORE_IMPERSONATED_DEVICEMAP 0x00000800L
View code on GitHubThis OBJECT_ATTRIBUTES flag indicates that the open/create operation should ignore the DOS Devices map from the logon session of the impersonated token.
OBJ_PROTECT_CLOSEOBJ_INHERITOBJ_AUDIT_OBJECT_CLOSEOBJ_NO_RIGHTS_UPGRADEOBJ_PERMANENTOBJ_EXCLUSIVEOBJ_CASE_INSENSITIVEOBJ_OPENIFOBJ_OPENLINKOBJ_KERNEL_HANDLEOBJ_FORCE_ACCESS_CHECKOBJ_DONT_REPARSEOBJECT_ATTRIBUTESNtOpenThreadTokenNtSetInformationThread with THREADINFOCLASS value of ThreadImpersonationToken (5)NtSetInformationProcess with PROCESSINFOCLASS value of ProcessDeviceMap (23)