Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.1 KiB

  1. #include <nt.h>
  2. #include <ntrtl.h>
  3. #include <nturtl.h>
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6. #include <windows.h>
  7. #include <string.h>
  8. DWORD
  9. _cdecl
  10. main(
  11. int argc,
  12. char *argv[],
  13. char *envp[]
  14. )
  15. {
  16. ULONG ErrorParameters[2];
  17. ULONG ErrorResponse;
  18. UNICODE_STRING PathName;
  19. RtlInitUnicodeString(&PathName,L"\\\\??\\O:\\AUTORUN.EXE");
  20. ErrorResponse = ResponseOk;
  21. ErrorParameters[0] = (ULONG)&PathName;
  22. NtRaiseHardError( STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE,
  23. 1,
  24. 1,
  25. ErrorParameters,
  26. OptionOk,
  27. &ErrorResponse
  28. );
  29. RtlInitUnicodeString(&PathName,L"\\\\??\\O:\\autorun.exe");
  30. ErrorResponse = ResponseOk;
  31. ErrorParameters[0] = (ULONG)&PathName;
  32. NtRaiseHardError( STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE,
  33. 1,
  34. 1,
  35. ErrorParameters,
  36. OptionOk,
  37. &ErrorResponse
  38. );
  39. return 1;
  40. }