pub fn open_thread(
desired_access: u32,
inherit_handle: i32,
thread_id: u32,
) -> HANDLEExpand description
Opens a HANDLE to a thread.
If the function fails, it will return a null HANDLE.
§Examples
ⓘ
let thread_id = 792u32;
let handle = dyncvoke_core::open_thread(0x0002, 0, thread_id); //THREAD_SUSPEND_RESUME access right.
if !handle.is_null()
{
println!("Handle to thread with id {} with THREAD_SUSPEND_RESUME access right successfully obtained.", thread_id);
}