Go to the source code of this file.
◆ START_TEST()
◆ Test_ThreadBasicInformationClass()
static void Test_ThreadBasicInformationClass |
( |
void |
| ) |
|
|
static |
Definition at line 13 of file NtQueryInformationThread.c.
14{
18
20 if (!ThreadInfoBasic)
21 {
22 skip(
"Failed to allocate memory for THREAD_BASIC_INFORMATION!\n");
23 return;
24 }
25
26
30 0,
33
34
37 ThreadInfoBasic,
41
42
45 ThreadInfoBasic,
46 0,
49
50
57
58
62 0,
65
66
73
74
81
82
85 ThreadInfoBasic,
89 ok(
ReturnedLength != 0,
"The size of the buffer pointed by ThreadInformation shouldn't be 0!\n");
90
91
93 trace(
"ThreadInfoBasic->ExitStatus = 0x%08lx\n", ThreadInfoBasic->
ExitStatus);
98 trace(
"ThreadInfoBasic->Priority = %li\n", ThreadInfoBasic->
Priority);
100
102}
#define ok_hex(expression, result)
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG _In_ ULONG _Out_ PULONG ReturnedLength
#define STATUS_INVALID_HANDLE
#define HeapFree(x, y, z)
NTSTATUS NTAPI NtQueryInformationThread(IN HANDLE ThreadHandle, IN THREADINFOCLASS ThreadInformationClass, OUT PVOID ThreadInformation, IN ULONG ThreadInformationLength, OUT PULONG ReturnLength OPTIONAL)
#define STATUS_ACCESS_VIOLATION
#define STATUS_DATATYPE_MISALIGNMENT
#define STATUS_INFO_LENGTH_MISMATCH
HANDLE WINAPI GetCurrentThread(void)
Referenced by START_TEST().
◆ Test_ThreadQueryAlignmentProbe()
static void Test_ThreadQueryAlignmentProbe |
( |
void |
| ) |
|
|
static |
Definition at line 106 of file NtQueryInformationThread.c.
107{
109
110
112 {
113
115 InfoClass,
119
120
122 InfoClass,
126
127
129 InfoClass,
133 }
134}
VOID QuerySetThreadValidator(_In_ ALIGNMENT_PROBE_MODE ValidationMode, _In_ ULONG InfoClassIndex, _In_ PVOID InfoPointer, _In_ ULONG InfoLength, _In_ NTSTATUS ExpectedStatus)
static const INFORMATION_CLASS_INFO PsThreadInfoClass[]
Referenced by START_TEST().