System.Windows.Forms.MessageBoxManager.Unregister C# (CSharp) Method

Unregister() public static method

Disables MessageBoxManager functionality
Disables MessageBoxManager functionality on current thread only.
public static Unregister ( ) : void
return void
        public static void Unregister()
        {
            if (hHook != IntPtr.Zero)
            {
                UnhookWindowsHookEx(hHook);
                hHook = IntPtr.Zero;
            }
        }