-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define NT_TIB[32/64] types in winnt.h
NT_TIB, NT_TIB32, NT_TIB64 types should be defined in h/nt/winnt.h and in h/nt/ddk/ntddk.h.
- Loading branch information
Showing
3 changed files
with
47 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters