SwitchDesktop function Null safety user32

int SwitchDesktop(
  1. int hDesktop

Makes the specified desktop visible and activates it. This enables the desktop to receive input from the user. The calling process must have DESKTOP_SWITCHDESKTOP access to the desktop for the SwitchDesktop function to succeed.

BOOL SwitchDesktop(
  HDESK hDesktop


int SwitchDesktop(int hDesktop) => _SwitchDesktop(hDesktop);