Minor changes adding file for App Command stuff.
1.1 --- a/RemoteControlSample.csproj Thu Dec 25 15:12:21 2014 +0100
1.2 +++ b/RemoteControlSample.csproj Sat Dec 27 21:35:33 2014 +0100
1.3 @@ -135,6 +135,7 @@
1.4 <Compile Include="RemoteControlDevice.cs">
1.5 <SubType>Code</SubType>
1.6 </Compile>
1.7 + <Compile Include="Win32AppCommand.cs" />
1.8 <Compile Include="Win32CreateFile.cs" />
1.9 <Compile Include="Win32Hid.cs" />
1.10 <Compile Include="Win32RawInput.cs" />
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/Win32AppCommand.cs Sat Dec 27 21:35:33 2014 +0100
2.3 @@ -0,0 +1,18 @@
2.4 +using System;
2.5 +using System.Runtime.InteropServices;
2.6 +
2.7 +namespace Win32
2.8 +{
2.9 + static public partial class Const
2.10 + {
2.11 + public const int WM_APPCOMMAND = 0x0319;
2.12 + }
2.13 +
2.14 + static public partial class Macro
2.15 + {
2.16 + public static int GET_APPCOMMAND_LPARAM(IntPtr lParam)
2.17 + {
2.18 + return ((short)HIWORD(lParam.ToInt32()) & ~Const.FAPPCOMMAND_MASK);
2.19 + }
2.20 + }
2.21 +}
2.22 \ No newline at end of file
3.1 --- a/Win32RawInput.cs Thu Dec 25 15:12:21 2014 +0100
3.2 +++ b/Win32RawInput.cs Sat Dec 27 21:35:33 2014 +0100
3.3 @@ -30,11 +30,6 @@
3.4 return (wParam.ToInt32() & 0xff);
3.5 }
3.6
3.7 - public static int GET_APPCOMMAND_LPARAM(IntPtr lParam)
3.8 - {
3.9 - return ((short)HIWORD(lParam.ToInt32()) & ~Const.FAPPCOMMAND_MASK);
3.10 - }
3.11 -
3.12 public static int GET_DEVICE_LPARAM(IntPtr lParam)
3.13 {
3.14 return ((ushort)(HIWORD(lParam.ToInt32()) & Const.FAPPCOMMAND_MASK));
3.15 @@ -67,7 +62,6 @@
3.16 /// Windows Messages
3.17 /// </summary>
3.18 public const int WM_KEYDOWN = 0x0100;
3.19 - public const int WM_APPCOMMAND = 0x0319;
3.20 public const int WM_INPUT = 0x00FF;
3.21
3.22 /// <summary>