F4MP/codigos originales/tiltedcode/Code/immersive_launcher/utils/NtInternal.h

22 lines
307 B
C
Raw Normal View History

#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