Skip to content

Commit

Permalink
xboxkrnl: add OBJECT_HEADER structure
Browse files Browse the repository at this point in the history
  • Loading branch information
RadWolfie authored and Ryzee119 committed Jun 8, 2023
1 parent a48ed10 commit 500354e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/xboxkrnl/xboxdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ typedef unsigned int SIZE_T, *PSIZE_T;
typedef int BOOL, *PBOOL;
typedef const char *PCSZ, *PCSTR, *LPCSTR;

typedef ULONGLONG QUAD;

typedef ULONG ULONG_PTR;
typedef LONG LONG_PTR;

Expand Down
10 changes: 10 additions & 0 deletions lib/xboxkrnl/xboxkrnl.h
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,16 @@ typedef struct _OBJECT_TYPE
ULONG PoolTag;
} OBJECT_TYPE, *POBJECT_TYPE;

typedef struct _OBJECT_HEADER {
LONG PointerCount;
LONG HandleCount;
POBJECT_TYPE Type;
ULONG Flags;
QUAD Body;
} OBJECT_HEADER, *POBJECT_HEADER;

#define OBJECT_TO_OBJECT_HEADER(Object) CONTAINING_RECORD(Object, OBJECT_HEADER, Body)

typedef VOID (NTAPI *PKDEFERRED_ROUTINE) (
IN PKDPC Dpc,
IN PVOID DeferredContext,
Expand Down

0 comments on commit 500354e

Please sign in to comment.