OBJECT_INFORMATION_CLASS - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTOBAPI_H
//
// Object Information
//
#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)
    ObjectSetRefTraceInformation, // since 25H2
    MaxObjectInfoClass
} OBJECT_INFORMATION_CLASS;

#endif
#endif

View code on GitHub
// ntifs.h

typedef enum _OBJECT_INFORMATION_CLASS {
  ObjectBasicInformation = 0,
  ObjectTypeInformation = 2
} OBJECT_INFORMATION_CLASS;
View the official Windows Driver Kit DDI reference

NtDoc

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)

Windows Driver Kit DDI reference (ne-ntifs-_object_information_class)

OBJECT_INFORMATION_CLASS enumeration

Description

The OBJECT_INFORMATION_CLASS enumeration type represents the type of information to supply about a kernel object.

Constants

ObjectBasicInformation:0

The caller-allocated buffer passed to ZwQueryObject in the buffer that ObjectInformation points to contains a PUBLIC_OBJECT_BASIC_INFORMATION structure.

ObjectTypeInformation:2

The caller-allocated buffer passed to ZwQueryObject in the buffer that ObjectInformation points to contains a PUBLIC_OBJECT_TYPE_INFORMATION structure.

See also

PUBLIC_OBJECT_BASIC_INFORMATION

PUBLIC_OBJECT_TYPE_INFORMATION

ZwQueryObject


NTinternals.net (undocumented.ntinternals.net)

This enumeration is documented in Windows Driver Kit.


OBJECT_INFORMATION_CLASS specifies a kind of information of any object available in caller context. It's used with functions NtQueryObject and NtSetInformationObject.

ObjectBasicInformation

ObjectNameInformation

ObjectTypeInformation

ObjectAllInformation

ObjectDataInformation

Documented by

See also