mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 16:50:54 +01:00
22 lines
307 B
C
22 lines
307 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <intrin.h>
|
||
|
|
|
||
|
|
namespace NtInternal
|
||
|
|
{
|
||
|
|
struct MyPEB
|
||
|
|
{
|
||
|
|
char pad_0[2];
|
||
|
|
bool bBeingDebugged;
|
||
|
|
char pad_3[4];
|
||
|
|
char pad_4[8];
|
||
|
|
void* pImageBase;
|
||
|
|
};
|
||
|
|
|
||
|
|
// 64 bit only
|
||
|
|
inline MyPEB* ThePeb()
|
||
|
|
{
|
||
|
|
return reinterpret_cast<MyPEB*>(__readgsqword(0x60));
|
||
|
|
}
|
||
|
|
} // namespace NtInternal
|