#ifndef _NTOBAPI_H
/**
* The OBJECT_HANDLE_FLAG_INFORMATION structure contains flag information for an object handle.
* \remarks The structure occupies 2 bytes: Inherit at offset 0 and ProtectFromClose at offset 1.
* NtQueryObject accepts a buffer of at least 2 bytes; NtSetInformationObject requires exactly 2 bytes.
*/
typedef struct _OBJECT_HANDLE_FLAG_INFORMATION
{
BOOLEAN Inherit;
BOOLEAN ProtectFromClose;
} OBJECT_HANDLE_FLAG_INFORMATION, *POBJECT_HANDLE_FLAG_INFORMATION;
View code on GitHubThis structure controls handle inheritance and protection attributes.
NtQueryObject with ObjectHandleFlagInformation.NtSetInformationObject with ObjectHandleFlagInformation.A boolean indicating whether the handle is marked as inheritable.
A boolean indicating whether the handle is marked as protected from closing.