MovablePython.Hotkey.UnregisterHotKey C# (CSharp) Method

UnregisterHotKey() private method

private UnregisterHotKey ( IntPtr hWnd, int id ) : int
hWnd System.IntPtr
id int
return int
        private static extern int UnregisterHotKey(IntPtr hWnd, int id);

Usage Example

Esempio n. 1
0
        public bool Unregister()
        {
            // Check that we have registered
            if (!this.registered)
            {
                throw new NotSupportedException("You cannot unregister a hotkey that is not registered");
            }

            // Clean up after ourselves
            bool result = (Hotkey.UnregisterHotKey(this.windowControl.Handle, this.id) != 0);

            // Clear the control reference and register state
            this.registered    = false;
            this.windowControl = null;

            return(result);
        }
All Usage Examples Of MovablePython.Hotkey::UnregisterHotKey