#ifndef _NTOBAPI_H
#ifndef OBJ_INHERIT
#define OBJ_INHERIT 0x00000002
View code on GitHub#ifndef _PHNT_NTDEF_H
#ifndef _NTDEF_
#define OBJ_INHERIT 0x00000002L
View code on GitHubThis OBJECT_ATTRIBUTES flag indicates that the handle should be inheritable. Whether the child processes actually inherit this handle depends on the flags used during process creation and some other attributes of the object.
OBJ_PROTECT_CLOSEOBJ_AUDIT_OBJECT_CLOSEOBJ_NO_RIGHTS_UPGRADEOBJ_PERMANENTOBJ_EXCLUSIVEOBJ_CASE_INSENSITIVEOBJ_OPENIFOBJ_OPENLINKOBJ_KERNEL_HANDLEOBJ_FORCE_ACCESS_CHECKOBJ_IGNORE_IMPERSONATED_DEVICEMAPOBJ_DONT_REPARSE