StephaneLenclud@76: // StephaneLenclud@76: // Copyright (C) 2014-2015 Stéphane Lenclud. StephaneLenclud@76: // StephaneLenclud@76: // This file is part of SharpLibHid. StephaneLenclud@76: // StephaneLenclud@76: // SharpDisplayManager is free software: you can redistribute it and/or modify StephaneLenclud@76: // it under the terms of the GNU General Public License as published by StephaneLenclud@76: // the Free Software Foundation, either version 3 of the License, or StephaneLenclud@76: // (at your option) any later version. StephaneLenclud@76: // StephaneLenclud@76: // SharpDisplayManager is distributed in the hope that it will be useful, StephaneLenclud@76: // but WITHOUT ANY WARRANTY; without even the implied warranty of StephaneLenclud@76: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the StephaneLenclud@76: // GNU General Public License for more details. StephaneLenclud@76: // StephaneLenclud@76: // You should have received a copy of the GNU General Public License StephaneLenclud@76: // along with SharpDisplayManager. If not, see . StephaneLenclud@76: // StephaneLenclud@76: sl@45: using System; sl@45: using System.Runtime.InteropServices; sl@45: StephaneLenclud@77: namespace SharpLib.Win32 sl@45: { sl@45: static public partial class Const sl@45: { sl@45: public const int WM_APPCOMMAND = 0x0319; sl@45: } sl@45: sl@45: static public partial class Macro sl@45: { sl@45: public static int GET_APPCOMMAND_LPARAM(IntPtr lParam) sl@45: { sl@45: return ((short)HIWORD(lParam.ToInt32()) & ~Const.FAPPCOMMAND_MASK); sl@45: } sl@45: } sl@45: }