24 { \
35 { \
37 ok_eq_pointer((
Mutex)->MutantListEntry.Flink, &
Thread->MutantListHead); \
38 ok_eq_pointer((
Mutex)->MutantListEntry.Blink, &
Thread->MutantListHead); \
39 ok_eq_pointer(
Thread->MutantListHead.Flink, &(
Mutex)->MutantListEntry); \
40 ok_eq_pointer(
Thread->MutantListHead.Blink, &(
Mutex)->MutantListEntry); \
42 } \
43 else \
44 { \
47 { \
48 ok_eq_pointer((
Mutex)->MutantListEntry.Flink, \
49 (
PVOID)0x5555555555555555ULL); \
50 ok_eq_pointer((
Mutex)->MutantListEntry.Blink, \
51 (
PVOID)0x5555555555555555ULL); \
52 } \
53 ok_eq_pointer(
Thread->MutantListHead.Flink, &
Thread->MutantListHead); \
54 ok_eq_pointer(
Thread->MutantListHead.Blink, &
Thread->MutantListHead); \
55 ok_eq_pointer((
Mutex)->OwnerThread,
NULL); \
56 } \
58 ok_eq_uint((
Mutex)->ApcDisable, ExpectedApcDisable); \
59} while (0)
60
61#define CheckApcs(KernelApcsDisabled, SpecialApcsDisabled, AllApcsDisabled, Irql) do \
62{ \
63 ok_eq_bool(KeAreApcsDisabled(), KernelApcsDisabled || SpecialApcsDisabled); \
64 ok_eq_int(Thread->KernelApcDisable, KernelApcsDisabled); \
65 if (pKeAreAllApcsDisabled) \
66 ok_eq_bool(pKeAreAllApcsDisabled(), AllApcsDisabled); \
67 ok_eq_int(Thread->SpecialApcDisable, SpecialApcsDisabled); \
68 ok_irql(Irql); \
69} while (0)
70
71static
74{
80
86
95
96
105
110
111
112 for (
i = 0;
i < 8;
i++)
113 {
124 }
125
127 {
134 }
135
140
141
152
164
174
179
180 Mutant.
Header.SignalState = -1;
185
190
191
197}
#define CheckMutex(Mutex, State, New, ExpectedApcDisable)
#define CheckApcs(KernelApcsDisabled, SpecialApcsDisabled, AllApcsDisabled, Irql)
#define ok_eq_hex(value, expected)
#define ok_eq_long(value, expected)
#define KeWaitForSingleObject(pEvt, foo, a, b, c)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define KeGetCurrentThread
#define RtlFillMemory(Dest, Length, Fill)
#define KmtEndSeh(ExpectedStatus)
LONG NTAPI KeReleaseMutant(IN PKMUTANT Mutant, IN KPRIORITY Increment, IN BOOLEAN Abandon, IN BOOLEAN Wait)
VOID NTAPI KeInitializeMutant(IN PKMUTANT Mutant, IN BOOLEAN InitialOwner)
#define STATUS_MUTANT_LIMIT_EXCEEDED
#define STATUS_MUTANT_NOT_OWNED
_In_ KPRIORITY _In_ BOOLEAN Abandoned