author | StephaneLenclud |
Sun, 15 Mar 2015 20:25:58 +0100 | |
changeset 79 | cdc5f8f1b79e |
parent 77 | Win32AppCommand.cs@fb9ea5ad8c2d |
permissions | -rw-r--r-- |
StephaneLenclud@76 | 1 |
// |
StephaneLenclud@76 | 2 |
// Copyright (C) 2014-2015 Stéphane Lenclud. |
StephaneLenclud@76 | 3 |
// |
StephaneLenclud@76 | 4 |
// This file is part of SharpLibHid. |
StephaneLenclud@76 | 5 |
// |
StephaneLenclud@76 | 6 |
// SharpDisplayManager is free software: you can redistribute it and/or modify |
StephaneLenclud@76 | 7 |
// it under the terms of the GNU General Public License as published by |
StephaneLenclud@76 | 8 |
// the Free Software Foundation, either version 3 of the License, or |
StephaneLenclud@76 | 9 |
// (at your option) any later version. |
StephaneLenclud@76 | 10 |
// |
StephaneLenclud@76 | 11 |
// SharpDisplayManager is distributed in the hope that it will be useful, |
StephaneLenclud@76 | 12 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
StephaneLenclud@76 | 13 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
StephaneLenclud@76 | 14 |
// GNU General Public License for more details. |
StephaneLenclud@76 | 15 |
// |
StephaneLenclud@76 | 16 |
// You should have received a copy of the GNU General Public License |
StephaneLenclud@76 | 17 |
// along with SharpDisplayManager. If not, see <http://www.gnu.org/licenses/>. |
StephaneLenclud@76 | 18 |
// |
StephaneLenclud@76 | 19 |
|
sl@45 | 20 |
using System; |
sl@45 | 21 |
using System.Runtime.InteropServices; |
sl@45 | 22 |
|
StephaneLenclud@77 | 23 |
namespace SharpLib.Win32 |
sl@45 | 24 |
{ |
sl@45 | 25 |
static public partial class Const |
sl@45 | 26 |
{ |
sl@45 | 27 |
public const int WM_APPCOMMAND = 0x0319; |
sl@45 | 28 |
} |
sl@45 | 29 |
|
sl@45 | 30 |
static public partial class Macro |
sl@45 | 31 |
{ |
sl@45 | 32 |
public static int GET_APPCOMMAND_LPARAM(IntPtr lParam) |
sl@45 | 33 |
{ |
sl@45 | 34 |
return ((short)HIWORD(lParam.ToInt32()) & ~Const.FAPPCOMMAND_MASK); |
sl@45 | 35 |
} |
sl@45 | 36 |
} |
sl@45 | 37 |
} |