SetThreadDesktop

[DllImport("user32.dll", SetLastError = true)]
public static extern bool SetThreadDesktop(
   IntPtr hDesktop
);

Microsoft documentation: Link

Last updated