GetDesktopWindow

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

Microsoft documentation: Link

Last updated