OBJ_PROTECT_CLOSE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTOBAPI_H
#ifndef OBJ_PROTECT_CLOSE

#define OBJ_PROTECT_CLOSE 0x00000001

#endif
#endif

View code on GitHub
#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_

// Object attributes

#define OBJ_PROTECT_CLOSE                   0x00000001L

#endif
#endif

View code on GitHub

This 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.

Related flags

See also