mirror of
https://github.com/vxunderground/VX-API
synced 2024-06-28 09:41:13 +00:00
11 lines
196 B
C++
11 lines
196 B
C++
PPEB GetPebAlt(VOID)
|
|
{
|
|
PTEB Teb;
|
|
#if defined(_WIN64)
|
|
Teb = (PTEB)__readgsqword(0x30);
|
|
#elif define(_WIN32)
|
|
Teb = (PTEB)__readfsdword(0x18);
|
|
#endif
|
|
return (PPEB)Teb->ProcessEnvironmentBlock;
|
|
}
|