// ntddk.h
ULONGLONG PsGetProcessStartKey(
[in] PEPROCESS Process
);
View the official Windows Driver Kit DDI referenceNo description available.
This routine generates an identifier for a process which is unique across boot sessions.
Process [in]A pointer to the EPROCESS structure that represents the process. Drivers can use the PsGetCurrentProcess and ObReferenceObjectByHandle routines to obtain a pointer to the EPROCESS structure for a process.
Returns a ULONGLONG specifying a unique identifier for the provided process.
Here is an example of how a driver might call this routine:
ULONGLONG ProcessStartKey;
ProcessStartKey = PsGetProcessStartKey(PsGetCurrentProcess());
The process start key is typically used to track or identify a process over time.