How is
PEPROCESS
defined?
If you have the full structure just access the member:
PVOID UniqueProcessId = Process->UniqueProcessId;
If you know the offset and the type, cast
Process
to a byte or char pointer, add the offset, cast the result as pointer to the field type, and get the value:
LPBYTE pUpi = ((LPBYTE)Process) + 0xb4;
PVOID UniqueProcessId = *((PVOID*)pUpi);