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.

structs.h 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #ifndef STRUCTS_INCLUDE_HEADER
  2. #define STRUCTS_INCLUDE_HEADER
  3. typedef struct _KSYSTEM_TIME {
  4. UINT32 LowPart;
  5. INT32 High1Time;
  6. INT32 High2Time;
  7. } KSYSTEM_TIME, *PKSYSTEM_TIME;
  8. typedef enum _NT_PRODUCT_TYPE
  9. {
  10. NtProductWinNt = 1,
  11. NtProductLanManNt = 2,
  12. NtProductServer = 3
  13. } NT_PRODUCT_TYPE;
  14. typedef enum _ALTERNATIVE_ARCHITECTURE_TYPE
  15. {
  16. StandardDesign = 0,
  17. NEC98x86 = 1,
  18. EndAlternatives = 2
  19. } ALTERNATIVE_ARCHITECTURE_TYPE;
  20. typedef struct _KUSER_SHARED_DATA
  21. {
  22. ULONG TickCountLowDeprecated;
  23. ULONG TickCountMultiplier;
  24. KSYSTEM_TIME InterruptTime;
  25. KSYSTEM_TIME SystemTime;
  26. KSYSTEM_TIME TimeZoneBias;
  27. WORD ImageNumberLow;
  28. WORD ImageNumberHigh;
  29. WCHAR NtSystemRoot[260];
  30. ULONG MaxStackTraceDepth;
  31. ULONG CryptoExponent;
  32. ULONG TimeZoneId;
  33. ULONG LargePageMinimum;
  34. ULONG Reserved2[7];
  35. NT_PRODUCT_TYPE NtProductType;
  36. UCHAR ProductTypeIsValid;
  37. ULONG NtMajorVersion;
  38. ULONG NtMinorVersion;
  39. UCHAR ProcessorFeatures[64];
  40. ULONG Reserved1;
  41. ULONG Reserved3;
  42. ULONG TimeSlip;
  43. ALTERNATIVE_ARCHITECTURE_TYPE AlternativeArchitecture;
  44. LARGE_INTEGER SystemExpirationDate;
  45. ULONG SuiteMask;
  46. UCHAR KdDebuggerEnabled;
  47. UCHAR NXSupportPolicy;
  48. ULONG ActiveConsoleId;
  49. ULONG DismountCount;
  50. ULONG ComPlusPackage;
  51. ULONG LastSystemRITEventTickCount;
  52. ULONG NumberOfPhysicalPages;
  53. UCHAR SafeBootMode;
  54. ULONG SharedDataFlags;
  55. ULONG DbgErrorPortPresent : 1;
  56. ULONG DbgElevationEnabled : 1;
  57. ULONG DbgVirtEnabled : 1;
  58. ULONG DbgInstallerDetectEnabled : 1;
  59. ULONG SystemDllRelocated : 1;
  60. ULONG SpareBits : 27;
  61. UINT64 TestRetInstruction;
  62. ULONG SystemCall;
  63. ULONG SystemCallReturn;
  64. UINT64 SystemCallPad[3];
  65. union
  66. {
  67. KSYSTEM_TIME TickCount;
  68. UINT64 TickCountQuad;
  69. };
  70. ULONG Cookie;
  71. INT64 ConsoleSessionForegroundProcessId;
  72. ULONG Wow64SharedInformation[16];
  73. WORD UserModeGlobalLogger[8];
  74. ULONG HeapTracingPid[2];
  75. ULONG CritSecTracingPid[2];
  76. ULONG ImageFileExecutionOptions;
  77. union
  78. {
  79. UINT64 AffinityPad;
  80. ULONG ActiveProcessorAffinity;
  81. };
  82. UINT64 InterruptTimeBias;
  83. } KUSER_SHARED_DATA, *PKUSER_SHARED_DATA;
  84. #endif // STRUCTS_INCLUDE_HEADER