Skip to content

Commit

Permalink
New shared data
Browse files Browse the repository at this point in the history
  • Loading branch information
RenardDev committed Apr 17, 2024
1 parent f1ea13f commit c9ea6ef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Detours.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ namespace Detours {

const volatile KUSER_SHARED_DATA& KUserSharedData = *reinterpret_cast<PKUSER_SHARED_DATA>(0x7FFE0000);

// ----------------------------------------------------------------
// KUSER_QPC_SHARED_DATA
// ----------------------------------------------------------------

const volatile KUSER_QPC_SHARED_DATA& KUserQpcSharedData = *reinterpret_cast<PKUSER_QPC_SHARED_DATA>(0x7FFEE000);

// ----------------------------------------------------------------
// PEB
// ----------------------------------------------------------------
Expand Down
13 changes: 13 additions & 0 deletions Detours.h
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,19 @@ namespace Detours {

extern const volatile KUSER_SHARED_DATA& KUserSharedData;

// ----------------------------------------------------------------
// KUSER_QPC_SHARED_DATA
// ----------------------------------------------------------------

typedef struct _KUSER_QPC_SHARED_DATA {
ULONG Present;
ULONG Reserved1;
ULONGLONG MultiplierValue;
ULONGLONG AdditionalOffset;
} KUSER_QPC_SHARED_DATA, *PKUSER_QPC_SHARED_DATA;

extern const volatile KUSER_QPC_SHARED_DATA& KUserQpcSharedData;

// ----------------------------------------------------------------
// LDR
// ----------------------------------------------------------------
Expand Down

0 comments on commit c9ea6ef

Please sign in to comment.