Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define NT_TIB[32/64] types in winnt.h #1348

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 1 addition & 44 deletions bld/w32api/include/ddk/ntddk.mh
Original file line number Diff line number Diff line change
Expand Up @@ -1067,50 +1067,7 @@ typedef struct _KEY_VIRTUALIZATION_INFORMATION {
} KEY_VIRTUALIZATION_INFORMATION;
typedef KEY_VIRTUALIZATION_INFORMATION *PKEY_VIRTUALIZATION_INFORMATION;

/* NT thread information block */
typedef struct _NT_TIB {
struct _EXCEPTION_REGISTRATION_RECORD *ExceptionList;
PVOID StackBase;
PVOID StackLimit;
PVOID SubSystemTib;
union {
PVOID FiberData;
ULONG Version;
};
PVOID ArbitraryUserPointer;
struct _NT_TIB *Self;
} NT_TIB;
typedef NT_TIB *PNT_TIB;

/* NT thread information block (32-bit version) */
typedef struct _NT_TIB32 {
ULONG ExceptionList;
ULONG StackBase;
ULONG StackLimit;
ULONG SubSystemTib;
union {
ULONG FiberData;
ULONG Version;
};
ULONG ArbitraryUserPointer;
ULONG Self;
} NT_TIB32;
typedef NT_TIB32 *PNT_TIB32;

/* NT thread information block (64-bit version) */
typedef struct _NT_TIB64 {
ULONG64 ExceptionList;
ULONG64 StackBase;
ULONG64 StackLimit;
ULONG64 SubSystemTib;
union {
ULONG64 FiberData;
ULONG Version;
};
ULONG64 ArbitraryUserPointer;
ULONG64 Self;
} NT_TIB64;
typedef NT_TIB64 *PNT_TIB64;
:include nttib.sp

/* Process information classes */
typedef enum _PROCESSINFOCLASS {
Expand Down
44 changes: 44 additions & 0 deletions bld/w32api/include/nttib.sp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* NT thread information block */
typedef struct _NT_TIB {
struct _EXCEPTION_REGISTRATION_RECORD *ExceptionList;
PVOID StackBase;
PVOID StackLimit;
PVOID SubSystemTib;
union {
PVOID FiberData;
ULONG Version;
};
PVOID ArbitraryUserPointer;
struct _NT_TIB *Self;
} NT_TIB;
typedef NT_TIB *PNT_TIB;

/* NT thread information block (32-bit version) */
typedef struct _NT_TIB32 {
ULONG ExceptionList;
ULONG StackBase;
ULONG StackLimit;
ULONG SubSystemTib;
union {
ULONG FiberData;
ULONG Version;
};
ULONG ArbitraryUserPointer;
ULONG Self;
} NT_TIB32;
typedef NT_TIB32 *PNT_TIB32;

/* NT thread information block (64-bit version) */
typedef struct _NT_TIB64 {
ULONG64 ExceptionList;
ULONG64 StackBase;
ULONG64 StackLimit;
ULONG64 SubSystemTib;
union {
ULONG64 FiberData;
ULONG Version;
};
ULONG64 ArbitraryUserPointer;
ULONG64 Self;
} NT_TIB64;
typedef NT_TIB64 *PNT_TIB64;
2 changes: 2 additions & 0 deletions bld/w32api/include/winnt.mh
Original file line number Diff line number Diff line change
Expand Up @@ -4115,6 +4115,8 @@ typedef struct _JOB_SET_ARRAY {
} JOB_SET_ARRAY;
typedef JOB_SET_ARRAY *PJOB_SET_ARRAY;

:include nttib.sp

/* Quota limits */
typedef struct _QUOTA_LIMITS {
SIZE_T PagedPoolLimit;
Expand Down
Loading