Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef _M_X64
- C_ASSERT(FIELD_OFFSET(OBJECT_HEADER, Body) == 0x030);
- C_ASSERT(sizeof(OBJECT_HEADER) == 0x038);
- #else
- C_ASSERT(FIELD_OFFSET(OBJECT_HEADER, Body) == 0x018);
- C_ASSERT(sizeof(OBJECT_HEADER) == 0x020);
- #endif
- #define OBJECT_TO_OBJECT_HEADER(Object) CONTAINING_RECORD((Object), OBJECT_HEADER, Body)
- NTKERNELAPI
- POBJECT_TYPE
- NTAPI
- ObGetObjectType(
- _In_ PVOID Object
- );
- NTKERNELAPI
- NTSTATUS
- NTAPI
- ObOpenObjectByName(
- _In_ POBJECT_ATTRIBUTES ObjectAttributes,
- _In_ POBJECT_TYPE ObjectType,
- _In_ KPROCESSOR_MODE PreviousMode,
- _In_opt_ PACCESS_STATE AccessState,
- _In_opt_ ACCESS_MASK DesiredAccess,
- _In_opt_ PVOID ParseContext,
- _Out_ PHANDLE Handle
- );
- NTKERNELAPI
- NTSTATUS
- NTAPI
- ObSetHandleAttributes(
- _In_ HANDLE Handle,
- _In_ POBJECT_HANDLE_FLAG_INFORMATION HandleFlags,
- _In_ KPROCESSOR_MODE PreviousMode
- );
- // PS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement