diff -r 63a5f4c05179 -r b044174a8d7b Win32AppCommand.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Win32AppCommand.cs Sat Dec 27 21:35:33 2014 +0100 @@ -0,0 +1,18 @@ +using System; +using System.Runtime.InteropServices; + +namespace Win32 +{ + static public partial class Const + { + public const int WM_APPCOMMAND = 0x0319; + } + + static public partial class Macro + { + public static int GET_APPCOMMAND_LPARAM(IntPtr lParam) + { + return ((short)HIWORD(lParam.ToInt32()) & ~Const.FAPPCOMMAND_MASK); + } + } +} \ No newline at end of file