ZwCurrentThread macro

The ZwCurrentThread macro returns a handle to the current thread.

Syntax


HANDLE ZwCurrentThread(void);

Parameters

This macro has no parameters.

Return value

ZwCurrentThread returns a special handle value that represents the current thread.

Remarks

The returned value is not a true handle, but it is a special value that always represents the current thread.

Requirements

Target platform

Desktop

Version

All supported operating systems.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

IRQL

Any level

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft