mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
f0b5d2bd5d
Some function names renamed to avoid confusion, some function annotations added.
21 lines
366 B
C++
21 lines
366 B
C++
#include "Win32Helper.h"
|
|
|
|
PPEB GetPeb(VOID)
|
|
{
|
|
#if defined(_WIN64)
|
|
return (PPEB)__readgsqword(0x60);
|
|
#elif define(_WIN32)
|
|
return (PPEB)__readfsdword(0x30);
|
|
#endif
|
|
}
|
|
|
|
PPEB GetPebFromTeb(VOID)
|
|
{
|
|
PTEB Teb;
|
|
#if defined(_WIN64)
|
|
Teb = (PTEB)__readgsqword(0x30);
|
|
#elif define(_WIN32)
|
|
Teb = (PTEB)__readfsdword(0x18);
|
|
#endif
|
|
return (PPEB)Teb->ProcessEnvironmentBlock;
|
|
} |