Condividi tramite


Funzione PsGetProcessStartKey (ntddk.h)

Questa routine genera un identificatore per un processo univoco tra le sessioni di avvio.

Sintassi

ULONGLONG PsGetProcessStartKey(
  [in] PEPROCESS Process
);

Parametri

[in] Process

Puntatore alla struttura EPROCESS che rappresenta il processo. I driver possono usare le routine PsGetCurrentProcess e ObReferenceObjectByHandle per ottenere un puntatore alla struttura EPROCESS per un processo.

Valore restituito

Restituisce un oggetto ULONGLONG che specifica un identificatore univoco per il processo specificato.

Commenti

Ecco un esempio di come un driver potrebbe chiamare questa routine:

ULONGLONG ProcessStartKey;
ProcessStartKey = PsGetProcessStartKey(PsGetCurrentProcess());

La chiave di avvio del processo viene in genere usata per tenere traccia o identificare un processo nel tempo.

Requisiti

Requisito Valore
Client minimo supportato Windows 10 versione 1703
Intestazione ntddk.h
IRQL <= DISPATCH_LEVEL