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.

54 lines
2.3 KiB

  1. //
  2. // Only included in UI code that manipulates global flag settings
  3. // (i.e. gflags.exe tool).
  4. //
  5. #define VALID_ONLY_PER_IMAGE_FLAGS FLG_DISABLE_STACK_EXTENSION
  6. #define VALID_SYSTEM_REGISTRY_FLAGS FLG_VALID_BITS ^ \
  7. (FLG_STOP_ON_HUNG_GUI | VALID_ONLY_PER_IMAGE_FLAGS)
  8. #define VALID_KERNEL_MODE_FLAGS (FLG_KERNELMODE_VALID_BITS | FLG_USERMODE_VALID_BITS) ^ \
  9. (FLG_BOOTONLY_VALID_BITS | VALID_ONLY_PER_IMAGE_FLAGS)
  10. #define VALID_IMAGE_FILE_NAME_FLAGS FLG_USERMODE_VALID_BITS
  11. struct {
  12. ULONG Flag;
  13. PCHAR Abbreviation;
  14. PCHAR Description;
  15. } GlobalFlagInfo[ 32 ] = {
  16. 0x00000001, "soe", "Stop On Exception",
  17. 0x00000002, "sls", "Show Loader Snaps",
  18. 0x00000004, "dic", "Debug Initial Command",
  19. 0x00000008, "shg", "Stop on Hung GUI",
  20. 0x00000010, "htc", "Enable heap tail checking",
  21. 0x00000020, "hfc", "Enable heap free checking",
  22. 0x00000040, "hpc", "Enable heap parameter checking",
  23. 0x00000080, "hvc", "Enable heap validation on call",
  24. 0x00000100, "vrf", "Enable application verifier",
  25. 0x00000200, NULL, "unused",
  26. 0x00000400, "ptg", "Enable pool tagging",
  27. 0x00000800, "htg", "Enable heap tagging",
  28. 0x00001000, "ust", "Create user mode stack trace database",
  29. 0x00002000, "kst", "Create kernel mode stack trace database",
  30. 0x00004000, "otl", "Maintain a list of objects for each type",
  31. 0x00008000, "htd", "Enable heap tagging by DLL",
  32. 0x00010000, "dse", "Disable stack extensions",
  33. 0x00020000, "d32", "Enable debugging of Win32 Subsystem",
  34. 0x00040000, "ksl", "Enable loading of kernel debugger symbols",
  35. 0x00080000, "dps", "Disable paging of kernel stacks",
  36. 0x00100000, "scb", "Enable system critical breaks",
  37. 0x00200000, "dhc", "Disable Heap Coalesce on Free",
  38. 0x00400000, "ece", "Enable close exception",
  39. 0x00800000, "eel", "Enable exception logging",
  40. 0x01000000, "eot", "Enable object handle type tagging",
  41. 0x02000000, "hpa", "Place heap allocations at ends of pages",
  42. 0x04000000, "dwl", "Debug WINLOGON",
  43. 0x08000000, "ddp", "Disable kernel mode DbgPrint output",
  44. 0x10000000, "cse", "Early critical section event creation",
  45. 0x20000000, "ltd", "Load DLLs top-down",
  46. 0x40000000, "bhd", "Enable bad handles detection",
  47. 0x80000000, "dpd", "Disable protected DLL verification"
  48. };