Go to the source code of this file.
|
#define | NoResponse 27 |
|
#define | CheckHardError(ErrStatus, UnicodeStringMask, ResponseOption, ExpectedStatus, ExpectedResponse, NumberOfParameters, ...) |
|
#define | CheckInformationalHardError(ErrStatus, String, Thread, ExpectedStatus, ExpectedRet) |
|
◆ CheckHardError
#define CheckHardError |
( |
|
ErrStatus, |
|
|
|
UnicodeStringMask, |
|
|
|
ResponseOption, |
|
|
|
ExpectedStatus, |
|
|
|
ExpectedResponse, |
|
|
|
NumberOfParameters, |
|
|
|
... |
|
) |
| |
Value:do \
{ \
SetParameters(HardErrorParameters, NumberOfParameters, __VA_ARGS__);\
NumberOfParameters, \
UnicodeStringMask, \
HardErrorParameters, \
ResponseOption, \
ok_eq_hex(
Status, ExpectedStatus); \
} while (0)
NTSTATUS NTAPI ExRaiseHardError(IN NTSTATUS ErrorStatus, IN ULONG NumberOfParameters, IN ULONG UnicodeStringParameterMask, IN PULONG_PTR Parameters, IN ULONG ValidResponseOptions, OUT PULONG Response)
#define EXCEPTION_EXECUTE_HANDLER
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
Definition at line 30 of file ExHardError.c.
◆ CheckInformationalHardError
#define CheckInformationalHardError |
( |
|
ErrStatus, |
|
|
|
String, |
|
|
|
Thread, |
|
|
|
ExpectedStatus, |
|
|
|
ExpectedRet |
|
) |
| |
Value:do \
{ \
Ret = !ExpectedRet; \
ok_eq_hex(
Status, ExpectedStatus); \
ok_eq_bool(Ret, ExpectedRet); \
} while (0)
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
BOOLEAN NTAPI IoRaiseInformationalHardError(IN NTSTATUS ErrorStatus, IN PUNICODE_STRING String, IN PKTHREAD Thread)
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition at line 50 of file ExHardError.c.
◆ NoResponse
◆ SetParameters()
Definition at line 15 of file ExHardError.c.
19{
26}
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
_Must_inspect_result_ _In_ WDFQUEUE _In_opt_ WDFREQUEST _In_opt_ WDFFILEOBJECT _Inout_opt_ PWDF_REQUEST_PARAMETERS Parameters
Referenced by DECLARE_INTERFACE_().
◆ START_TEST() [1/2]
START_TEST |
( |
ExHardError |
| ) |
|
Definition at line 219 of file ExHardError.c.
220{
222}
static VOID TestHardError(BOOLEAN InteractivePart1, BOOLEAN InteractivePart2, BOOLEAN InteractivePart3, BOOLEAN InteractivePart4)
◆ START_TEST() [2/2]
START_TEST |
( |
ExHardErrorInteractive |
| ) |
|
◆ TestHardError()
Definition at line 68 of file ExHardError.c.
73{
76 WCHAR StringBuffer1[] =
L"Parameter1+Garbage";
77 CHAR StringBuffer1Ansi[] =
"Parameter1+Garbage";
78 WCHAR StringBuffer2[] =
L"Parameter2+Garbage";
84
88
89 if (InteractivePart1)
90 {
93 CheckHardError(0x40000002, 0,
OptionOk,
STATUS_SUCCESS,
ResponseOk, 5, 1, 2, 3, 4, 5);
94 CheckHardError(0x40000003, 0,
OptionOk,
STATUS_SUCCESS,
ResponseNotHandled, 6, 1, 2, 3, 4, 5, 6);
95 }
96
98 if (InteractivePart1)
99 {
100
118 }
125
126 if (InteractivePart2)
127 {
128
133
138
149 }
150 if (InteractivePart3)
151 {
152
157
164
175 }
176 if (InteractivePart4)
177 {
178
183
188
199
200
204 }
206
217}
#define STATUS_PRIVILEGE_NOT_HELD
#define CheckHardError(ErrStatus, UnicodeStringMask, ResponseOption, ExpectedStatus, ExpectedResponse, NumberOfParameters,...)
#define CheckInformationalHardError(ErrStatus, String, Thread, ExpectedStatus, ExpectedRet)
#define ok_bool_false(value, desc)
#define ok_bool_true(value, desc)
@ OptionCancelTryContinue
_In_ const STRING * String2
BOOLEAN NTAPI IoSetThreadHardErrorMode(IN BOOLEAN HardErrorEnabled)
#define STATUS_DLL_NOT_FOUND
#define STATUS_FATAL_APP_EXIT
#define STATUS_ACCESS_VIOLATION
#define STATUS_SERVICE_NOTIFICATION
#define RTL_CONSTANT_STRING(s)
Referenced by START_TEST().