Leaked source code of windows server 2003
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.

58 lines
1.6 KiB

  1. //
  2. // CrashDrv driver/test constants
  3. //
  4. #define FILE_DEVICE_CRASHDRV 0x00008000
  5. #define TEST_CHECK_REQUEST 0
  6. #define TEST_BUGCHECK 1
  7. #define TEST_STACK_OVERFLOW 2
  8. #define TEST_SIMPLE 3
  9. #define TEST_EXCEPTION 4
  10. #define TEST_HARDERR 5
  11. #define TEST_SPECIAL 6
  12. #define IOCTL_CRASHDRV_CHECK_REQUEST CTL_CODE(FILE_DEVICE_CRASHDRV, TEST_CHECK_REQUEST, METHOD_OUT_DIRECT,FILE_ANY_ACCESS)
  13. #define IOCTL_CRASHDRV_BUGCHECK CTL_CODE(FILE_DEVICE_CRASHDRV, TEST_BUGCHECK, METHOD_OUT_DIRECT,FILE_ANY_ACCESS)
  14. #define IOCTL_CRASHDRV_STACK_OVERFLOW CTL_CODE(FILE_DEVICE_CRASHDRV, TEST_STACK_OVERFLOW, METHOD_OUT_DIRECT,FILE_ANY_ACCESS)
  15. #define IOCTL_CRASHDRV_SIMPLE CTL_CODE(FILE_DEVICE_CRASHDRV, TEST_SIMPLE, METHOD_OUT_DIRECT,FILE_ANY_ACCESS)
  16. #define IOCTL_CRASHDRV_EXCEPTION CTL_CODE(FILE_DEVICE_CRASHDRV, TEST_EXCEPTION, METHOD_OUT_DIRECT,FILE_ANY_ACCESS)
  17. #define IOCTL_CRASHDRV_HARDERR CTL_CODE(FILE_DEVICE_CRASHDRV, TEST_HARDERR, METHOD_OUT_DIRECT,FILE_ANY_ACCESS)
  18. #define IOCTL_CRASHDRV_SPECIAL CTL_CODE(FILE_DEVICE_CRASHDRV, TEST_SPECIAL, METHOD_OUT_DIRECT,FILE_ANY_ACCESS)
  19. //
  20. // prototypes
  21. //
  22. VOID
  23. CrashDrvStackOverFlow(
  24. PULONG ub
  25. );
  26. VOID
  27. CrashDrvBugCheck(
  28. PULONG ub
  29. );
  30. VOID
  31. CrashDrvSimpleTest(
  32. PULONG ub
  33. );
  34. VOID
  35. CrashDrvExceptionTest(
  36. PULONG ub
  37. );
  38. VOID
  39. CrashDrvHardError(
  40. PULONG ub
  41. );
  42. VOID
  43. CrashSpecial(
  44. PULONG ub
  45. );