SwitchDesktop function user32

Win32Result<bool> SwitchDesktop(
  1. HDESK hDesktop
)

Makes the specified desktop visible and activates it.

This enables the desktop to receive input from the user.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-switchdesktop.

Implementation

Win32Result<bool> SwitchDesktop(HDESK hDesktop) {
  final result_ = SwitchDesktop_Wrapper(hDesktop);
  return .new(value: result_.value.i32 != FALSE, error: result_.error);
}