You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These helpers are wil::for_each_window, wil::for_each_thread_window, and wil::for_each_child_window. They also have nothrow versions.
// lambda can return a boolwil::for_each_window_nothrow([](HWND hwnd) {
returntrue;
});
// or not return anythingwil::for_each_window_nothrow([](HWND hwnd) {
});
// or return an HRESULT and we'll stop if it's not S_OKwil::for_each_window_nothrow([](HWND hwnd) {
returnS_FALSE;
});
These lambdas can be mutable. In the throwing case, any exception thrown by the lambda is captured and rethrown.