GetWindow

[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr GetWindow(
   IntPtr hWnd,
   uint uCmd
);

Microsoft documentation: Link

Last updated