OBJ_PERMANENT - NtDoc

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

#define OBJ_PERMANENT                       0x00000010L

#endif
#endif

View code on GitHub

This OBJECT_ATTRIBUTES flag indicates that the object should be marked as permanent. This flag alters the lifetime of the object, making it independent from reference counting. Creating or marking objects as permanent requires SeCreatePermanentPrivilege. To delete such object, make it temporary first via NtMakeTemporaryObject.

Related flags

Remarks

To make an existing object permanent, use NtMakePermanentObject.

See also