diff --git a/Windows API/RfGetCurrentProcessId.cpp b/Windows API/RfGetCurrentProcessId.cpp new file mode 100644 index 0000000..89c81eb --- /dev/null +++ b/Windows API/RfGetCurrentProcessId.cpp @@ -0,0 +1,4 @@ +DWORD RfGetCurrentProcessId(VOID) +{ + return HandleToUlong(GetTeb()->ClientId.UniqueProcess); +}