Win32AppCommand.cs
author StephaneLenclud
Wed, 04 Mar 2015 20:52:24 +0100
changeset 70 e0a7b35f90dd
child 76 831ebeeecfdf
permissions -rw-r--r--
Consolidating for keyboard and mouse device support.
Adding tests tab.
     1 using System;
     2 using System.Runtime.InteropServices;
     3 
     4 namespace Win32
     5 {
     6     static public partial class Const
     7     {
     8         public const int WM_APPCOMMAND = 0x0319;
     9     }
    10 
    11     static public partial class Macro
    12     {
    13         public static int GET_APPCOMMAND_LPARAM(IntPtr lParam)
    14         {
    15             return ((short)HIWORD(lParam.ToInt32()) & ~Const.FAPPCOMMAND_MASK);
    16         }
    17     }
    18 }