GetSystemMenu

[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr GetSystemMenu(
   IntPtr hWnd,
   bool bRevert
);

Microsoft documentation: Link

Last updated