ZwCurrentProcess

Definito in: Wdm.h

La macro ZwCurrentProcess restituisce un handle per il processo corrente.

Valore restituito

GESTIRE

ZwCurrentProcess restituisce un valore di handle speciale che rappresenta il processo corrente.

Il valore restituito non è un handle true, ma è un valore speciale che rappresenta sempre il processo corrente.

NtCurrentProcess e ZwCurrentProcess sono due versioni della stessa routine di Servizi di sistema nativi di Windows. La routine NtCurrentProcess nel kernel di Windows non è direttamente accessibile ai driver in modalità kernel. Tuttavia, i driver in modalità kernel possono accedere indirettamente a questa routine chiamando ZwCurrentProcess.

Per le chiamate da driver in modalità kernel, le versioni Nt_Xxx_ e Zw_Xxx_ di una routine di Servizi di sistema nativi di Windows possono comportarsi in modo diverso nel modo in cui gestiscono e interpretano i parametri di input. Per altre informazioni sulla relazione tra le versioni Nt_Xxx_ e Zw_Xxx_ di una routine, vedere Using Nt and Zw Versions of the Native System Services Routines .For more information about the relationship between the Nt_Xxx_ and Zw_Xxx_ versions of a routine, see Using Nt and Zw Versions of the Native System Services Routines.

Tutti i sistemi operativi supportati.

IRQL: qualsiasi livello