9 lines
173 B
C
9 lines
173 B
C
#define HandleToUlong (h)((ULONG)(ULONG_PTR)(h))
|
|
|
|
DWORD GetCurrentProcessIdAlt(VOID)
|
|
{
|
|
PTEB Teb = GetTeb();
|
|
|
|
return HandleToUlong(Teb->ClientId.UniqueProcess);
|
|
}
|