mirror of
https://github.com/vxunderground/VX-API
synced 2026-06-06 16:54:55 +00:00
1aed815bd8
2.0.409
11 lines
200 B
C++
11 lines
200 B
C++
#include "Win32Helper.h"
|
|
|
|
DWORD GetCurrentProcessIdFromOffset(VOID)
|
|
{
|
|
#if defined(_WIN64)
|
|
return (UINT32)__readgsqword(0x40);
|
|
#elif define(_WIN32)
|
|
return (UINT32)__readfsdword(0x20);
|
|
#endif
|
|
}
|