Struct winsafe::HTHREAD [−][src]
#[repr(C)]pub struct HTHREAD { /* fields omitted */ }
Expand description
Handle to a
thread.
Originally just a HANDLE
.
Implementations
Creates a new handle instance by wrapping a pointer.
This method is common to all handle types.
Consumes the handle returning the underlying raw pointer.
This method is common to all handle types.
Tells if the handle is invalid (null).
This method is common to all handle types.
CloseHandle
method.
pub fn CreateThread(
thread_attrs: Option<&mut SECURITY_ATTRIBUTES<'_>>,
stack_size: u64,
start_addr: *mut c_void,
parameter: *mut c_void,
flags: THREAD_CREATE
) -> WinResult<(HTHREAD, u32)>
pub fn CreateThread(
thread_attrs: Option<&mut SECURITY_ATTRIBUTES<'_>>,
stack_size: u64,
start_addr: *mut c_void,
parameter: *mut c_void,
flags: THREAD_CREATE
) -> WinResult<(HTHREAD, u32)>
CreateThread
static method.
Returns the thread handle and ID.
Note: Must be paired with an
HTHREAD::CloseHandle
call.
ExitThread
static method.
GetCurrentThread
static method.
GetExitCodeThread
method.
GetProcessIdOfThread
method.
GetThreadId
method.
GetThreadTimes
method.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more