/// <summary> /// Sends a WM_APPCOMMAND message to a specific window /// </summary> /// <param name="hWnd">The window handle to send the message to</param> /// <param name="command">The command to send</param> public static int SendAppcommand(int hWnd, Appcommand command) { return(SendMessage(hWnd, WM_APPCOMMAND, 0, (int)command << 16)); }
/// <summary> /// Broadcast a WM_APPCOMMAND to all windows /// </summary> /// <param name="command">The command to broadcast</param> public static int BroadcastAppcommand(Appcommand command) { return(SendAppcommand(HWND_BROADCAST, command)); }