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.

57 lines
2.1 KiB

  1. BOOLEAN NotifyUserInAVeryNonSubtleWay (ULONG ErrorCode, PCHAR ReplacementText, PCHAR SupplementalText, ULONG Flags);
  2. extern ULONG IgnoreHook;
  3. // Flags for NotifyUserInAVeryNonSubtleWay
  4. #define BS_HARDWAREBIOS_BIT 0
  5. #define BS_HARDWAREBIOS (1 << BS_HARDWAREBIOS_BIT)
  6. #define BS_SOFTWARE_BIT 1
  7. #define BS_SOFTWARE (1 << BS_SOFTWARE_BIT)
  8. // Joe User meet Mr. Reaper....
  9. #define BS_REAPER_BIT 2
  10. #define BS_REAPER (1 << BS_REAPER_BIT)
  11. #define BS_REPLACE_TEXT_BIT 3
  12. #define BS_REPLACE_TEXT (1 << BS_REPLACE_TEXT_BIT)
  13. #define BS_SUPPLEMENT_TEXT_BIT 4
  14. #define BS_SUPPLEMENT_TEXT (1 << BS_SUPPLEMENT_TEXT_BIT)
  15. #define BS_SUPPRESS_AUTOMATIC_SUPPLEMENT_BIT 5
  16. #define BS_SUPPRESS_AUTOMATIC_SUPPLEMENT (1 << BS_SUPPRESS_AUTOMATIC_SUPPLEMENT_BIT)
  17. #define BS_KNOWN_CAUSE_MASK (BS_HARDWAREBIOS | BS_SOFTWARE)
  18. #define BS_VALID_FLAGS_MASK (BS_HARDWAREBIOS | BS_SOFTWARE | BS_REAPER | BS_REPLACE_TEXT | BS_SUPPLEMENT_TEXT | \
  19. BS_SUPPRESS_AUTOMATIC_SUPPLEMENT)
  20. #define BS_STANDARD_CAPTION "ACPI Critical Error #%x"
  21. #define BS_UNKNOWN_CAUSE_MESSAGE "The ACPI device driver has encountered an unusual error. "BS_SUPPORT_MESSAGE_TRAILER
  22. #define BS_UNKNOWN_CAUSE_MESSAGE_SIZE (sizeof (BS_UNKNOWN_CAUSE_MESSAGE))
  23. #define BS_HARDWARE_CAUSE_MESSAGE "The ACPI driver has encountered a hardware or bios problem. "
  24. #define BS_HARDWARE_CAUSE_MESSAGE_SIZE (sizeof (BS_HARDWARE_CAUSE_MESSAGE))
  25. #define BS_SOFTWARE_CAUSE_MESSAGE "The ACPI device driver has encountered a critical error. "BS_SUPPORT_MESSAGE_TRAILER
  26. #define BS_SOFTWARE_CAUSE_MESSAGE_SIZE (sizeof (BS_SOFTWARE_CAUSE_MESSAGE))
  27. #define BS_REAPER_MESSAGE "This problem will usually result in a system CRASH or HANG !"
  28. #define BS_REAPER_MESSAGE_SIZE (sizeof (BS_REAPER_MESSAGE))
  29. #define BS_SUPPORT_MESSAGE_TRAILER "Please contact Microsoft Beta Support and give them the above error number."
  30. #define BS_BS_FLAGS (MB_SYSTEMMODAL | MB_OK | MB_ASAP | MB_NOWINDOW)
  31. #define BS_SUPP_MESSAGE "The SCI_EN bit was not set after enabling ACPI"