Function winsafe::GetGUIThreadInfo

source ·
pub fn GetGUIThreadInfo(thread_id: u32) -> SysResult<GUITHREADINFO>
Available on crate feature user only.
Expand description

GetGUIThreadInfo function.

§Examples

use winsafe::{self as w, prelude::*};

let hwnd: w::HWND; // initialized somewhere

let (thread_id, _) = hwnd.GetWindowThreadProcessId();
let gti = w::GetGUIThreadInfo(thread_id)?;

println!("Caret rect: {}", gti.rcCaret);