windows-nt/Source/XPSP1/NT/base/win32/client/bt/nt/hrderr.c

48 lines
1.1 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
#include <string.h>
DWORD
_cdecl
main(
int argc,
char *argv[],
char *envp[]
)
{
ULONG ErrorParameters[2];
ULONG ErrorResponse;
UNICODE_STRING PathName;
RtlInitUnicodeString(&PathName,L"\\\\??\\O:\\AUTORUN.EXE");
ErrorResponse = ResponseOk;
ErrorParameters[0] = (ULONG)&PathName;
NtRaiseHardError( STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE,
1,
1,
ErrorParameters,
OptionOk,
&ErrorResponse
);
RtlInitUnicodeString(&PathName,L"\\\\??\\O:\\autorun.exe");
ErrorResponse = ResponseOk;
ErrorParameters[0] = (ULONG)&PathName;
NtRaiseHardError( STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE,
1,
1,
ErrorParameters,
OptionOk,
&ErrorResponse
);
return 1;
}