# GetCurrentProcessIdFromOffset

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

```

