Function winsafe::EnumThreadWindows

source ·
pub fn EnumThreadWindows<F>(thread_id: u32, func: F) -> SysResult<()>
where F: FnMut(HWND) -> bool,
Available on crate feature user only.
Expand description

EnumThreadWindows function.

§Examples

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

w::EnumThreadWindows(
    w::GetCurrentThreadId(),
    |hwnd: w::HWND| -> bool {
        println!("HWND: {}", hwnd);
        true
    },
)?;