PsGetCurrentThreadProcessId

VOID *__stdcall PsGetCurrentThreadProcessId(){
  return(VOID *)KeGetCurrentThread()[1].CycleTime;
}

Referenced by:

CmpCreateKeyBody
EtwpDisallowedGuidAddition
EtwpDisallowedGuidRemoval
EtwpEnableGuid
EtwpNotifyGuid
EtwpRegisterPrivateSession
EtwpRegisterSecurityProvider
HalpSetSystemInformation
NtTraceControl
ObpCreateHandle
PiDqIrpQueryCreate
PiUEventHandleRegistration
PoShutdownBugCheck
SeAuditHandleCreation