 
        #ifndef _NTOBAPI_H
#ifndef OBJ_PROTECT_CLOSE
#define OBJ_PROTECT_CLOSE 0x00000001
View code on GitHub#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_
// Object attributes
#define OBJ_PROTECT_CLOSE                   0x00000001L
View code on GitHubThis OBJECT_ATTRIBUTES flag indicates that the handle should be protected from closing. Passing such handle to NtClose returns an error; trying to close it via NtDuplicateObject has no effect.
OBJ_INHERITOBJ_AUDIT_OBJECT_CLOSEOBJ_NO_RIGHTS_UPGRADEOBJ_PERMANENTOBJ_EXCLUSIVEOBJ_CASE_INSENSITIVEOBJ_OPENIFOBJ_OPENLINKOBJ_KERNEL_HANDLEOBJ_FORCE_ACCESS_CHECKOBJ_IGNORE_IMPERSONATED_DEVICEMAPOBJ_DONT_REPARSE