OpenInputDesktop function user32
Win32Result<HDESK>
OpenInputDesktop(
- DESKTOP_CONTROL_FLAGS dwFlags,
- bool fInherit,
- DESKTOP_ACCESS_FLAGS dwDesiredAccess
Opens the desktop that receives user input.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-openinputdesktop.
Implementation
Win32Result<HDESK> OpenInputDesktop(
DESKTOP_CONTROL_FLAGS dwFlags,
bool fInherit,
DESKTOP_ACCESS_FLAGS dwDesiredAccess,
) {
final result_ = OpenInputDesktop_Wrapper(
dwFlags,
fInherit ? TRUE : FALSE,
dwDesiredAccess,
);
return Win32Result(value: HDESK(result_.value.ptr), error: result_.error);
}