#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;
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.
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 |
Retrieves the name of the object in its native form.
Query | Set | |
---|---|---|
Type | OBJECT_NAME_INFORMATION |
N/A |
Required access | None | N/A |
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 |
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 |
Controls handle inheritance and protection attributes.
Query | Set | |
---|---|---|
Type | OBJECT_HANDLE_FLAG_INFORMATION |
OBJECT_HANDLE_FLAG_INFORMATION |
Required access | None | None |