For the complete documentation index, see llms.txt. This page is also available as Markdown.

GetCurrentProcessIdFromOffset

DWORD GetCurrentProcessIdFromOffset(VOID)
{
#if defined(_WIN64)
    return (UINT32)__readgsqword(0x40);
#elif define(_WIN32)
    return (UINT32)__readfsdword(0x20);
#endif
}

Last updated