OBJECT_INFORMATION_CLASS - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTOBAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)

typedef enum _OBJECT_INFORMATION_CLASS
{
    ObjectBasicInformation, // q: OBJECT_BASIC_INFORMATION
    ObjectNameInformation, // q: OBJECT_NAME_INFORMATION
    ObjectTypeInformation, // q: OBJECT_TYPE_INFORMATION
    ObjectTypesInformation, // q: OBJECT_TYPES_INFORMATION
    ObjectHandleFlagInformation, // qs: OBJECT_HANDLE_FLAG_INFORMATION
    ObjectSessionInformation, // s: void // change object session // (requires SeTcbPrivilege)
    ObjectSessionObjectInformation, // s: void // change object session // (requires SeTcbPrivilege)
    MaxObjectInfoClass
} OBJECT_INFORMATION_CLASS;

#endif
#endif

View code on GitHub

Defines common types of information that can be queried or set for kernel handles/objects. This enumeration is partially documented in Windows Driver Kit.

Applicable to

Members

ObjectBasicInformation (0)

Retrieves basic information about the handle and the underlying object, such as the granted access mask and handle count.

Query Set
Type OBJECT_BASIC_INFORMATION N/A
Required access None N/A
Optional access READ_CONTROL N/A

ObjectNameInformation (1)

Retrieves the name of the object in its native form.

Query Set
Type OBJECT_NAME_INFORMATION N/A
Required access None N/A

ObjectTypeInformation (2)

Retrieves information about the type of the object referenced via the handle.

Query Set
Type OBJECT_TYPE_INFORMATION N/A
Required access None N/A

ObjectTypesInformation (3)

Retrieves information about all types of kernel objects registered on the system. This information class does not require a handle on input.

Query Set
Type OBJECT_TYPES_INFORMATION N/A
Required access N/A N/A

ObjectHandleFlagInformation (4)

Controls handle inheritance and protection attributes.

Query Set
Type OBJECT_HANDLE_FLAG_INFORMATION OBJECT_HANDLE_FLAG_INFORMATION
Required access None None

See also

ObjectSessionInformation (5)

ObjectSessionObjectInformation (6)