30#define CheckHardError(ErrStatus, UnicodeStringMask, ResponseOption, \
31 ExpectedStatus, ExpectedResponse, \
32 NumberOfParameters, ...) do \
34 SetParameters(HardErrorParameters, NumberOfParameters, __VA_ARGS__);\
35 Response = NoResponse; \
37 Status = ExRaiseHardError(ErrStatus, \
40 HardErrorParameters, \
43 } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) { \
44 Status = _SEH2_GetExceptionCode(); \
46 ok_eq_hex(Status, ExpectedStatus); \
47 ok_eq_ulong(Response, (ULONG)ExpectedResponse); \
50#define CheckInformationalHardError(ErrStatus, String, Thread, \
51 ExpectedStatus, ExpectedRet) do \
53 Status = STATUS_SUCCESS; \
56 Ret = IoRaiseInformationalHardError(ErrStatus, \
59 } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) { \
60 Status = _SEH2_GetExceptionCode(); \
62 ok_eq_hex(Status, ExpectedStatus); \
63 ok_eq_bool(Ret, ExpectedRet); \
76 WCHAR StringBuffer1[] =
L"Parameter1+Garbage";
77 CHAR StringBuffer1Ansi[] =
"Parameter1+Garbage";
78 WCHAR StringBuffer2[] =
L"Parameter2+Garbage";
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);
126 if (InteractivePart2)
150 if (InteractivePart3)
176 if (InteractivePart4)
#define STATUS_PRIVILEGE_NOT_HELD
#define CheckHardError(ErrStatus, UnicodeStringMask, ResponseOption, ExpectedStatus, ExpectedResponse, NumberOfParameters,...)
#define CheckInformationalHardError(ErrStatus, String, Thread, ExpectedStatus, ExpectedRet)
static VOID TestHardError(BOOLEAN InteractivePart1, BOOLEAN InteractivePart2, BOOLEAN InteractivePart3, BOOLEAN InteractivePart4)
static VOID SetParameters(OUT PULONG_PTR Parameters, IN INT Count,...)
#define ok_bool_false(value, desc)
#define ok_bool_true(value, desc)
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
@ 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)
_Must_inspect_result_ _In_ WDFQUEUE _In_opt_ WDFREQUEST _In_opt_ WDFFILEOBJECT _Inout_opt_ PWDF_REQUEST_PARAMETERS Parameters