#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_
/**
* If this flag is specified, by using the object handle, to a routine that creates objects
* and if that object already exists, the routine should open that object.
* Otherwise, the routine creating the object returns an NTSTATUS code of STATUS_OBJECT_NAME_COLLISION.
*/
#define OBJ_OPENIF 0x00000080L
View code on GitHubThis OBJECT_ATTRIBUTES flag indicates that the create operation should open the object if the specified name is already taken.
OBJ_PROTECT_CLOSEOBJ_INHERITOBJ_AUDIT_OBJECT_CLOSEOBJ_NO_RIGHTS_UPGRADEOBJ_PERMANENTOBJ_EXCLUSIVEOBJ_CASE_INSENSITIVEOBJ_OPENLINKOBJ_KERNEL_HANDLEOBJ_FORCE_ACCESS_CHECKOBJ_IGNORE_IMPERSONATED_DEVICEMAPOBJ_DONT_REPARSE