This topic has not yet been rated Rate this topic

ETHREAD

The ETHREAD structure is an opaque structure that serves as the thread object for a thread.

Some routines, such as PsIsSystemThread, use ETHREAD to identify the thread to operate on. Drivers can use the PsGetCurrentThread routine to obtain a pointer to the thread object for the current thread and can use the ObReferenceObjectByHandle routine to obtain a pointer to the thread object that is associated with the specified handle.

Note that a thread object is an Object Manager object. Drivers should use Object Manager routines such as ObReferenceObject and ObDereferenceObject to maintain the object's reference count.

Requirements

Version

All supported operating systems.

Header

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

See also

ObReferenceObjectByHandle
PsGetCurrentThread
PsIsSystemThread

 

 

Send comments about this topic to Microsoft

Build date: 12/8/2011

Did you find this helpful?
(1500 characters remaining)