[DllImport("coredll.dll", SetLastError = true)] public static extern bool EnableMenuItem( IntPtr hMenu, uint uIDEnableItem, MenuFlags uEnable );
Microsoft documentation: Link
Last updated 1 year ago