Advertisement
Guest User

Untitled

a guest
Feb 11th, 2015
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 27.68 KB | None | 0 0
  1. #region Copyright (C) 2005-2011 Team MediaPortal
  2.  
  3. // Copyright (C) 2005-2011 Team MediaPortal
  4. // http://www.team-mediaportal.com
  5. //
  6. // MediaPortal is free software: you can redistribute it and/or modify
  7. // it under the terms of the GNU General Public License as published by
  8. // the Free Software Foundation, either version 2 of the License, or
  9. // (at your option) any later version.
  10. //
  11. // MediaPortal is distributed in the hope that it will be useful,
  12. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. // GNU General Public License for more details.
  15. //
  16. // You should have received a copy of the GNU General Public License
  17. // along with MediaPortal. If not, see <http://www.gnu.org/licenses/>.
  18.  
  19. #endregion
  20.  
  21. namespace Hid
  22. {
  23.   /// <summary>
  24.   ///   From USB HID usage tables.
  25.   ///   http://www.usb.org/developers/hidpage#HID_Usage
  26.   ///   http://www.usb.org/developers/devclass_docs/Hut1_12v2.pdf
  27.   /// </summary>
  28.   public enum UsagePage : ushort
  29.   {
  30.     Undefined = 0,
  31.     GenericDesktopControls,
  32.     SimulationControls,
  33.     VirtualRealityControls,
  34.     SportControls,
  35.     GameControls,
  36.     GenericDeviceControls,
  37.     Keyboard,
  38.     LightEmittingDiode,
  39.     Button,
  40.     Ordinal,
  41.     Telephony,
  42.     Consumer,
  43.     Digitiser,
  44.     PhysicalInterfaceDevice = 0x0f,
  45.     Unicode = 0x10,
  46.     AlphaNumericDisplay = 0x14,
  47.     MedicalInstruments = 0x40,
  48.     MonitorPage0 = 0x80,
  49.     MonitorPage1,
  50.     MonitorPage2,
  51.     MonitorPage3,
  52.     PowerPage0,
  53.     PowerPage1,
  54.     PowerPage2,
  55.     PowerPage3,
  56.     BarCodeScanner = 0x8c,
  57.     Scale,
  58.     MagneticStripeReader,
  59.     ReservedPointOfSale,
  60.     CameraControl,
  61.     Arcade,
  62.     // http://msdn.microsoft.com/en-us/library/windows/desktop/bb417079.aspx
  63.     WindowsMediaCenterRemoteControl = 0xffbc,
  64.     TerraTecRemote = 0xffcc
  65.   }
  66.  
  67.   public enum UsageCollectionGenericDesktop : ushort
  68.   {
  69.     Pointer = 0x01,
  70.     Mouse = 0x02,
  71.     Joystick = 0x04,
  72.     GamePad = 0x05,
  73.     Keyboard = 0x06,
  74.     KeyPad = 0x07,
  75.     MultiAxisController = 0x08,
  76.     TabletPCSystemControls = 0x09,
  77.     SystemControl = 0x80
  78.   }
  79.  
  80.   public enum UsageCollectionConsumer : ushort
  81.   {
  82.     ConsumerControl = 0x01,
  83.     NumericKeyPad = 0x02,
  84.     ProgrammableButtons = 0x03,
  85.     Microphone = 0x04,
  86.     Headphone = 0x05,
  87.     GraphicEqualizer = 0x06,
  88.     FunctionButtons = 0x36,
  89.     Selection = 0x80,
  90.     MediaSelection = 0x0087,
  91.     SelectDisc = 0x00BA,
  92.     PlaybackSpeed = 0x00F1,
  93.     Proximity = 0x0109,
  94.     SpeakerSystem = 0x0160,
  95.     ChannelLeft = 0x0161,
  96.     ChannelRight = 0x0162,
  97.     ChannelCenter = 0x0163,
  98.     ChannelFront = 0x0164,
  99.     ChannelCenterFront = 0x0165,
  100.     ChannelSide = 0x0166,
  101.     ChannelSurrond = 0x0167,
  102.     ChannelLowFrequencyEnhancement = 0x0168,
  103.     ChannelTop = 0x0169,
  104.     ChannelUnknown = 0x016A,
  105.     ApplicationLaunchButtons = 0x016A,
  106.     GenericGuiApplicationControls = 0x0200
  107.   }
  108.  
  109.  
  110.   public enum UsageCollectionWindowsMediaCenter : ushort
  111.   {
  112.     WindowsMediaCenterRemoteControl = 0x88
  113.   }
  114.  
  115.  
  116.   namespace UsageTables
  117.   {
  118.     /// <summary>
  119.     /// </summary>
  120.     public enum WindowsMediaCenterRemoteControl : ushort
  121.     {
  122.       /// <summary>
  123.       ///   Not defined by the Microsoft specs.
  124.       /// </summary>
  125.       Null = 0x00,
  126.       GreenStart = 0x0D,
  127.       ClosedCaptioning = 0x2B,
  128.       Teletext = 0x5A,
  129.       TeletextRed = 0x5B,
  130.       TeletextGreen = 0x5C,
  131.       TeletextYellow = 0x5D,
  132.       TeletextBlue = 0x5E,
  133.       LiveTv = 0x25,
  134.       Tv = 0x46,
  135.       Music = 0x47,
  136.       RecordedTv = 0x48,
  137.       Pictures = 0x49,
  138.       Videos = 0x4A,
  139.       FmRadio = 0x50,
  140.       Extras = 0x3C,
  141.       ExtrasApp = 0x3D,
  142.       DvdMenu = 0x24,
  143.       DvdAngle = 0x4B,
  144.       DvdAudio = 0x4C,
  145.       DvdSubtitle = 0x4D,
  146.  
  147.       /// <summary>
  148.       ///   First press action: Ejects a DVD drive.
  149.       ///   <para />
  150.       ///   Second press action: Repeats first press action.
  151.       ///   <para />
  152.       ///   Notably issued by XBOX360 remote as defined in irplus - Remote Control - Android application.
  153.       /// </summary>
  154.       Eject = 0x28,
  155.       DvdTopMenu = 0x43,
  156.  
  157.       /// <summary>
  158.       ///   First press action: Generates EXTn HID message in the Media Center Vendor Specific
  159.       ///   Collection (page 0xFFBC, usage 0x88).
  160.       ///   <para />
  161.       ///   Second press action: Repeats message.
  162.       ///   <para />
  163.       ///   Auto-repeat: No
  164.       ///   <para />
  165.       ///   Notably sent by the 'Visualization' button of HP Windows Media Center Remote (TSGH-IR08).
  166.       ///   <para />
  167.       ///   According to HP specs it displays visual imagery that is synchronized to the sound of your music tracks.
  168.       /// </summary>
  169.       Ext0 = 0x32,
  170.  
  171.       /// <summary>
  172.       ///   First press action: Generates EXTn HID message in the Media Center Vendor Specific
  173.       ///   Collection (page 0xFFBC, usage 0x88).
  174.       ///   <para />
  175.       ///   Second press action: Repeats message.
  176.       ///   <para />
  177.       ///   Auto-repeat: No
  178.       ///   <para />
  179.       ///   Notably sent by the 'Slide Show' button of HP Windows Media Center Remote (TSGH-IR08).
  180.       ///   <para />
  181.       ///   According to HP specs it plays a slide show of all the pictures on your hard disk drive.
  182.       /// </summary>
  183.       Ext1 = 0x33,
  184.  
  185.       /// <summary>
  186.       ///   First press action: Generates EXTn HID message in the Media Center Vendor Specific
  187.       ///   Collection (page 0xFFBC, usage 0x88).
  188.       ///   <para />
  189.       ///   Second press action: Repeats message.
  190.       ///   <para />
  191.       ///   Auto-repeat: No
  192.       ///   <para />
  193.       ///   Notably sent by the 'Eject' button of HP Windows Media Center Remote (TSGH-IR08).
  194.       ///   Also interpreted as 'Eject' action by SoundGraph iMON Manager in MCE mode (OrigenAE VF310).
  195.       /// </summary>
  196.       Ext2 = 0x34,
  197.  
  198.       /// <summary>
  199.       ///   First press action: Generates EXTn HID message in the Media Center Vendor Specific
  200.       ///   Collection (page 0xFFBC, usage 0x88).
  201.       ///   <para />
  202.       ///   Second press action: Repeats message.
  203.       ///   <para />
  204.       ///   Auto-repeat: No
  205.       ///   <para />
  206.       ///   Notably sent by the 'Input selection' button of HP Windows Media Center Remote (TSGH-IR08).
  207.       /// </summary>
  208.       Ext3 = 0x35,
  209.       Ext4 = 0x36,
  210.       Ext5 = 0x37,
  211.       Ext6 = 0x38,
  212.       Ext7 = 0x39,
  213.       Ext8 = 0x3A,
  214.       Ext9 = 0x80,
  215.       Ext10 = 0x81,
  216.       Ext11 = 0x6F,
  217.       Zoom = 0x27,
  218.       ChannelInput = 0x42,
  219.       SubAudio = 0x2D,
  220.       Channel10 = 0x3E,
  221.       Channel11 = 0x3F,
  222.       Channel12 = 0x40,
  223.  
  224.       /// <summary>
  225.       ///   First press action: Generates OEM2 HID message in the Media Center Vendor Specific
  226.       ///   Collection. This button is intended to control the front panel display of home entertainment
  227.       ///   computers. When this button is pressed, the display could be turned on or off, or the display
  228.       ///   mode could change.
  229.       ///   <para />
  230.       ///   Second press action: Repeats message.
  231.       ///   <para />
  232.       ///   Auto-repeat: No
  233.       ///   <para />
  234.       ///   Notably issued by XBOX360 remote as defined in irplus - Remote Control - Android application.
  235.       /// </summary>
  236.       Display = 0x4F,
  237.  
  238.       /// <summary>
  239.       ///   First press action: To be determined.
  240.       ///   <para />
  241.       ///   Second press action: Repeats message.
  242.       ///   <para />
  243.       ///   Auto-repeat: No
  244.       /// </summary>
  245.       Kiosk = 0x6A,
  246.       NetworkSelection = 0x2C,
  247.       BlueRayTool = 0x78,
  248.       ChannelInfo = 0x41,
  249.       VideoSelection = 0x61
  250.     }
  251.  
  252.     /// <summary>
  253.     ///   Those codes come from experimenting with HP remotes.
  254.     /// </summary>
  255.     public enum HpWindowsMediaCenterRemoteControl : ushort
  256.     {
  257.       /// <summary>
  258.       ///   Displays visual imagery that is synchronized to the sound of your music tracks.
  259.       ///   <para />
  260.       ///   Second press action: Repeats message.
  261.       ///   <para />
  262.       ///   Auto-repeat: No
  263.       ///   <para />
  264.       ///   Notably sent by the 'Visualization' button of HP Windows Media Center Remote (TSGH-IR08).
  265.       ///   <para />
  266.       ///   According to HP specs it displays visual imagery that is synchronized to the sound of your music tracks.
  267.       /// </summary>
  268.       Visualization = WindowsMediaCenterRemoteControl.Ext0,
  269.  
  270.       /// <summary>
  271.       ///   Plays a slide show of all the pictures on your hard disk drive.
  272.       ///   <para />
  273.       ///   Second press action: Repeats message.
  274.       ///   <para />
  275.       ///   Auto-repeat: No
  276.       ///   <para />
  277.       ///   Notably sent by the 'Slide Show' button of HP Windows Media Center Remote (TSGH-IR08).
  278.       ///   <para />
  279.       ///   According to HP specs it plays a slide show of all the pictures on your hard disk drive.
  280.       /// </summary>
  281.       SlideShow = WindowsMediaCenterRemoteControl.Ext1,
  282.  
  283.       /// <summary>
  284.       ///   Eject optical drive.
  285.       ///   <para />
  286.       ///   Second press action: Repeats message.
  287.       ///   <para />
  288.       ///   Auto-repeat: No
  289.       ///   <para />
  290.       ///   Notably sent by the 'Eject' button of HP Windows Media Center Remote (TSGH-IR08).
  291.       ///   Also interpreted as 'Eject' action by SoundGraph iMON Manager in MCE mode (OrigenAE VF310).
  292.       /// </summary>
  293.       HpEject = WindowsMediaCenterRemoteControl.Ext2,
  294.  
  295.       /// <summary>
  296.       ///   Not sure what this should do.
  297.       ///   <para />
  298.       ///   Second press action: Repeats message.
  299.       ///   <para />
  300.       ///   Auto-repeat: No
  301.       ///   <para />
  302.       ///   Notably sent by the 'Input selection' button of HP Windows Media Center Remote (TSGH-IR08).
  303.       /// </summary>
  304.       InputSelection = WindowsMediaCenterRemoteControl.Ext3
  305.     }
  306.  
  307.     /// <summary>
  308.     ///   Usage Table for Consumer Controls
  309.     ///   0x0C 0X01
  310.     /// </summary>
  311.     public enum ConsumerControl : ushort
  312.     {
  313.       Null = 0x00,
  314.       ConsumerControl = 0x01,
  315.       NumericKeyPad = 0x02,
  316.       ProgrammableButtons = 0x03,
  317.       Microphone = 0x04,
  318.       Headphone = 0x05,
  319.       GraphicEqualizer = 0x06,
  320.       Plus10 = 0x20,
  321.       Plus100 = 0x21,
  322.       AmPm = 0x22,
  323.       Power = 0x30,
  324.       Reset = 0x31,
  325.       Sleep = 0x32,
  326.       SleepAfter = 0x33,
  327.       SleepMode = 0x34,
  328.       Illumination = 0x35,
  329.       FunctionButtons = 0x36,
  330.       Menu = 0x40,
  331.       MenuPick = 0x41,
  332.       MenuUp = 0x42,
  333.       MenuDown = 0x43,
  334.       MenuLeft = 0x44,
  335.       MenuRight = 0x45,
  336.       MenuEscape = 0x46,
  337.       MenuValueIncrease = 0x47,
  338.       MenuValueDecrease = 0x48,
  339.       DataOnScreen = 0x60,
  340.       ClosedCaption = 0x61,
  341.       ClosedCaptionSelect = 0x62,
  342.       VcrTv = 0x63,
  343.       BroadcastMode = 0x64,
  344.       Snapshot = 0x65,
  345.       Still = 0x66,
  346.       Selection = 0x80,
  347.       AssignSelection = 0x81,
  348.       ModeStep = 0x82,
  349.       RecallLast = 0x83,
  350.       EnterChannel = 0x84,
  351.       OrderMovie = 0x85,
  352.       Channel = 0x86,
  353.       MediaSelection = 0x87,
  354.       MediaSelectComputer = 0x88,
  355.       MediaSelectTv = 0x89,
  356.       MediaSelectWww = 0x8A,
  357.       MediaSelectDvd = 0x8B,
  358.       MediaSelectTelephone = 0x8C,
  359.       MediaSelectProgramGuide = 0x8D,
  360.       MediaSelectVideoPhone = 0x8E,
  361.       MediaSelectGames = 0x8F,
  362.       MediaSelectMessages = 0x90,
  363.       MediaSelectCd = 0x91,
  364.       MediaSelectVcr = 0x92,
  365.       MediaSelectTuner = 0x93,
  366.       Quit = 0x94,
  367.       Help = 0x95,
  368.       MediaSelectTape = 0x96,
  369.       MediaSelectCable = 0x97,
  370.       MediaSelectSatellite = 0x98,
  371.       MediaSelectSecurity = 0x99,
  372.       MediaSelectHome = 0x9A,
  373.       MediaSelectCall = 0x9B,
  374.       ChannelIncrement = 0x9C,
  375.       ChannelDecrement = 0x9D,
  376.       MediaSelectSap = 0x9E,
  377.       VcrPlus = 0xA0,
  378.       Once = 0xA1,
  379.       Daily = 0xA2,
  380.       Weekly = 0xA3,
  381.       Monthly = 0xA4,
  382.       Play = 0xB0,
  383.       Pause = 0xB1,
  384.       Record = 0xB2,
  385.       FastForward = 0xB3,
  386.       Rewind = 0xB4,
  387.       ScanNextTrack = 0xB5,
  388.       ScanPreviousTrack = 0xB6,
  389.       Stop = 0xB7,
  390.       Eject = 0xB8,
  391.       RandomPlay = 0xB9,
  392.       SelectDisc = 0xBA,
  393.       EnterDisc = 0xBB,
  394.       Repeat = 0xBC,
  395.       Tracking = 0xBD,
  396.       TrackNormal = 0xBE,
  397.       SlowTracking = 0xBF,
  398.       FrameForward = 0xC0,
  399.       FrameBack = 0xC1,
  400.       Mark = 0xC2,
  401.       ClearMark = 0xC3,
  402.       RepeatFromMark = 0xC4,
  403.       ReturnToMark = 0xC5,
  404.       SearchMarkForward = 0xC6,
  405.       SearchMarkBackwards = 0xC7,
  406.       CounterReset = 0xC8,
  407.       ShowCounter = 0xC9,
  408.       TrackingIncrement = 0xCA,
  409.       TrackingDecrement = 0xCB,
  410.       StopEject = 0xCC,
  411.       PlayPause = 0xCD,
  412.       PlaySkip = 0xCE,
  413.       Volume = 0xE0,
  414.       Balance = 0xE1,
  415.       Mute = 0xE2,
  416.       Bass = 0xE3,
  417.       Treble = 0xE4,
  418.       BassBoost = 0xE5,
  419.       SurroundMode = 0xE6,
  420.       Loudness = 0xE7,
  421.       Mpx = 0xE8,
  422.       VolumeIncrement = 0xE9,
  423.       VolumeDecrement = 0xEA,
  424.       SpeedSelect = 0xF0,
  425.       PlaybackSpeed = 0xF1,
  426.       StandardPlay = 0xF2,
  427.       LongPlay = 0xF3,
  428.       ExtendedPlay = 0xF4,
  429.       Slow = 0xF5,
  430.       FanEnable = 0x100,
  431.       FanSpeed = 0x101,
  432.       LightEnable = 0x102,
  433.       LightIlluminationLevel = 0x103,
  434.       ClimateControlEnable = 0x104,
  435.       RoomTemperature = 0x105,
  436.       SecurityEnable = 0x106,
  437.       FireAlarm = 0x107,
  438.       PoliceAlarm = 0x108,
  439.       Proximity = 0x109,
  440.       Motion = 0x10A,
  441.       DuressAlarm = 0x10B,
  442.       HoldupAlarm = 0x10C,
  443.       MedicalAlarm = 0x10D,
  444.       BalanceRight = 0x150,
  445.       BalanceLeft = 0x151,
  446.       BassIncrement = 0x152,
  447.       BassDecrement = 0x153,
  448.       TrebleIncrement = 0x154,
  449.       TrebleDecrement = 0x155,
  450.       SpeakerSystem = 0x160,
  451.       ChannelLeft = 0x161,
  452.       ChannelRight = 0x162,
  453.       ChannelCenter = 0x163,
  454.       ChannelFront = 0x164,
  455.       ChannelCenterFront = 0x165,
  456.       ChannelSide = 0x166,
  457.       ChannelSurround = 0x167,
  458.       ChannelLowFrequencyEnhancement = 0x168,
  459.       ChannelTop = 0x169,
  460.       ChannelUnknown = 0x16A,
  461.       SubChannel = 0x170,
  462.       SubChannelIncrement = 0x171,
  463.       SubChannelDecrement = 0x172,
  464.       AlternateAudioIncrement = 0x173,
  465.       AlternateAudioDecrement = 0x174,
  466.       ApplicationLaunchButtons = 0x180,
  467.       AppLaunchLaunchButtonConfigurationTool = 0x181,
  468.       AppLaunchProgrammableButtonConfiguration = 0x182,
  469.       AppLaunchConsumerControlConfiguration = 0x183,
  470.       AppLaunchWordProcessor = 0x184,
  471.       AppLaunchTextEditor = 0x185,
  472.       AppLaunchSpreadsheet = 0x186,
  473.       AppLaunchGraphicsEditor = 0x187,
  474.       AppLaunchPresentationApp = 0x188,
  475.       AppLaunchDatabaseApp = 0x189,
  476.       AppLaunchEmailReader = 0x18A,
  477.       AppLaunchNewsreader = 0x18B,
  478.       AppLaunchVoicemail = 0x18C,
  479.       AppLaunchContactsAddressBook = 0x18D,
  480.       AppLaunchCalendarSchedule = 0x18E,
  481.       AppLaunchTaskProjectManager = 0x18F,
  482.       AppLaunchLogJournalTimecard = 0x190,
  483.       AppLaunchCheckbookFinance = 0x191,
  484.       AppLaunchCalculator = 0x192,
  485.       AppLaunchAVCapturePlayback = 0x193,
  486.       AppLaunchLocalMachineBrowser = 0x194,
  487.       AppLaunchLanWanBrowser = 0x195,
  488.       AppLaunchInternetBrowser = 0x196,
  489.       AppLaunchRemoteNetworkingIspConnect = 0x197,
  490.       AppLaunchNetworkConference = 0x198,
  491.       AppLaunchNetworkChat = 0x199,
  492.       AppLaunchTelephonyDialer = 0x19A,
  493.       AppLaunchLogon = 0x19B,
  494.       AppLaunchLogoff = 0x19C,
  495.       AppLaunchLogonLogoff = 0x19D,
  496.       AppLaunchTerminalLockScreensaver = 0x19E,
  497.       AppLaunchControlPanel = 0x19F,
  498.       AppLaunchCommandLineProcessorRun = 0x1A0,
  499.       AppLaunchProcessTaskManager = 0x1A1,
  500.       AppLaunchSelectTaskApplication = 0x1A2,
  501.       AppLaunchNextTaskApplication = 0x1A3,
  502.       AppLaunchPreviousTaskApplication = 0x1A4,
  503.       AppLaunchPreemptiveHaltTaskApplication = 0x1A5,
  504.       AppLaunchIntegratedHelpCenter = 0x1A6,
  505.       AppLaunchDocuments = 0x1A7,
  506.       AppLaunchThesaurus = 0x1A8,
  507.       AppLaunchDictionary = 0x1A9,
  508.       AppLaunchDesktop = 0x1AA,
  509.       AppLaunchSpellCheck = 0x1AB,
  510.       AppLaunchGrammarCheck = 0x1AC,
  511.       AppLaunchWirelessStatus = 0x1AD,
  512.       AppLaunchKeyboardLayout = 0x1AE,
  513.       AppLaunchVirusProtection = 0x1AF,
  514.       AppLaunchEncryption = 0x1B0,
  515.       AppLaunchScreenSaver = 0x1B1,
  516.       AppLaunchAlarms = 0x1B2,
  517.       AppLaunchClock = 0x1B3,
  518.       AppLaunchFileBrowser = 0x1B4,
  519.       AppLaunchPowerStatus = 0x1B5,
  520.       AppLaunchImageBrowser = 0x1B6,
  521.       AppLaunchAudioBrowser = 0x1B7,
  522.       AppLaunchMovieBrowser = 0x1B8,
  523.       AppLaunchDigitalRightsManager = 0x1B9,
  524.       AppLaunchDigitalWallet = 0x1BA,
  525.       AppLaunchInstantMessaging = 0x1BC,
  526.       AppLaunchOemFeaturesTipsTutorialBrowser = 0x1BD,
  527.       AppLaunchOemHelp = 0x1BE,
  528.       AppLaunchOnlineCommunity = 0x1BF,
  529.       AppLaunchEntertainmentContentBrowser = 0x1C0,
  530.       AppLaunchOnlineShoppingBrowser = 0x1C1,
  531.       AppLaunchSmartcardInformationHelp = 0x1C2,
  532.       AppLaunchMarketMonitorFinanceBrowser = 0x1C3,
  533.       AppLaunchCustomizedCorporateNewsBrowser = 0x1C4,
  534.       AppLaunchOnlineActivityBrowser = 0x1C5,
  535.       AppLaunchResearchSearchBrowser = 0x1C6,
  536.       AppLaunchAudioPlayer = 0x1C7,
  537.       GenericGuiApplicationControls = 0x200,
  538.       AppCtrlNew = 0x201,
  539.       AppCtrlOpen = 0x202,
  540.       AppCtrlClose = 0x203,
  541.       AppCtrlExit = 0x204,
  542.       AppCtrlMaximize = 0x205,
  543.       AppCtrlMinimize = 0x206,
  544.       AppCtrlSave = 0x207,
  545.       AppCtrlPrint = 0x208,
  546.       AppCtrlProperties = 0x209,
  547.       AppCtrlUndo = 0x21A,
  548.       AppCtrlCopy = 0x21B,
  549.       AppCtrlCut = 0x21C,
  550.       AppCtrlPaste = 0x21D,
  551.       AppCtrlSelectAll = 0x21E,
  552.       AppCtrlFind = 0x21F,
  553.       AppCtrlFindAndReplace = 0x220,
  554.       AppCtrlSearch = 0x221,
  555.       AppCtrlGoTo = 0x222,
  556.       AppCtrlHome = 0x223,
  557.       AppCtrlBack = 0x224,
  558.       AppCtrlForward = 0x225,
  559.       AppCtrlStop = 0x226,
  560.       AppCtrlRefresh = 0x227,
  561.       AppCtrlPreviousLink = 0x228,
  562.       AppCtrlNextLink = 0x229,
  563.       AppCtrlBookmarks = 0x22A,
  564.       AppCtrlHistory = 0x22B,
  565.       AppCtrlSubscriptions = 0x22C,
  566.       AppCtrlZoomIn = 0x22D,
  567.       AppCtrlZoomOut = 0x22E,
  568.       AppCtrlZoom = 0x22F,
  569.       AppCtrlFullScreenView = 0x230,
  570.       AppCtrlNormalView = 0x231,
  571.       AppCtrlViewToggle = 0x232,
  572.       AppCtrlScrollUp = 0x233,
  573.       AppCtrlScrollDown = 0x234,
  574.       AppCtrlScroll = 0x235,
  575.       AppCtrlPanLeft = 0x236,
  576.       AppCtrlPanRight = 0x237,
  577.       AppCtrlPan = 0x238,
  578.       AppCtrlNewWindow = 0x239,
  579.       AppCtrlTileHorizontally = 0x23A,
  580.       AppCtrlTileVertically = 0x23B,
  581.       AppCtrlFormat = 0x23C,
  582.       AppCtrlEdit = 0x23D,
  583.       AppCtrlBold = 0x23E,
  584.       AppCtrlItalics = 0x23F,
  585.       AppCtrlUnderline = 0x240,
  586.       AppCtrlStrikethrough = 0x241,
  587.       AppCtrlSubscript = 0x242,
  588.       AppCtrlSuperscript = 0x243,
  589.       AppCtrlAllCaps = 0x244,
  590.       AppCtrlRotate = 0x245,
  591.       AppCtrlResize = 0x246,
  592.       AppCtrlFlipHorizontal = 0x247,
  593.       AppCtrlFlipVertical = 0x248,
  594.       AppCtrlMirrorHorizontal = 0x249,
  595.       AppCtrlMirrorVertical = 0x24A,
  596.       AppCtrlFontSelect = 0x24B,
  597.       AppCtrlFontColor = 0x24C,
  598.       AppCtrlFontSize = 0x24D,
  599.       AppCtrlJustifyLeft = 0x24E,
  600.       AppCtrlJustifyCenterH = 0x24F,
  601.       AppCtrlJustifyRight = 0x250,
  602.       AppCtrlJustifyBlockH = 0x251,
  603.       AppCtrlJustifyTop = 0x252,
  604.       AppCtrlJustifyCenterV = 0x253,
  605.       AppCtrlJustifyBottom = 0x254,
  606.       AppCtrlJustifyBlockV = 0x255,
  607.       AppCtrlIndentDecrease = 0x256,
  608.       AppCtrlIndentIncrease = 0x257,
  609.       AppCtrlNumberedList = 0x258,
  610.       AppCtrlRestartNumbering = 0x259,
  611.       AppCtrlBulletedList = 0x25A,
  612.       AppCtrlPromote = 0x25B,
  613.       AppCtrlDemote = 0x25C,
  614.       AppCtrlYes = 0x25D,
  615.       AppCtrlNo = 0x25E,
  616.       AppCtrlCancel = 0x25F,
  617.       AppCtrlCatalog = 0x260,
  618.       AppCtrlBuyCheckout = 0x261,
  619.       AppCtrlAddToCart = 0x262,
  620.       AppCtrlExpand = 0x263,
  621.       AppCtrlExpandAll = 0x264,
  622.       AppCtrlCollapse = 0x265,
  623.       AppCtrlCollapseAll = 0x266,
  624.       AppCtrlPrintPreview = 0x267,
  625.       AppCtrlPasteSpecial = 0x268,
  626.       AppCtrlInsertMode = 0x269,
  627.       AppCtrlDelete = 0x26A,
  628.       AppCtrlLock = 0x26B,
  629.       AppCtrlUnlock = 0x26C,
  630.       AppCtrlProtect = 0x26D,
  631.       AppCtrlUnprotect = 0x26E,
  632.       AppCtrlAttachComment = 0x26F,
  633.       AppCtrlDeleteComment = 0x270,
  634.       AppCtrlViewComment = 0x271,
  635.       AppCtrlSelectWord = 0x272,
  636.       AppCtrlSelectSentence = 0x273,
  637.       AppCtrlSelectParagraph = 0x274,
  638.       AppCtrlSelectColumn = 0x275,
  639.       AppCtrlSelectRow = 0x276,
  640.       AppCtrlSelectTable = 0x277,
  641.       AppCtrlSelectObject = 0x278,
  642.       AppCtrlRedoRepeat = 0x279,
  643.       AppCtrlSort = 0x27A,
  644.       AppCtrlSortAscending = 0x27B,
  645.       AppCtrlSortDescending = 0x27C,
  646.       AppCtrlFilter = 0x27D,
  647.       AppCtrlSetClock = 0x27E,
  648.       AppCtrlViewClock = 0x27F,
  649.       AppCtrlSelectTimeZone = 0x280,
  650.       AppCtrlEditTimeZones = 0x281,
  651.       AppCtrlSetAlarm = 0x282,
  652.       AppCtrlClearAlarm = 0x283,
  653.       AppCtrlSnoozeAlarm = 0x284,
  654.       AppCtrlResetAlarm = 0x285,
  655.       AppCtrlSynchronize = 0x286,
  656.       AppCtrlSendReceive = 0x287,
  657.       AppCtrlSendTo = 0x288,
  658.       AppCtrlReply = 0x289,
  659.       AppCtrlReplyAll = 0x28A,
  660.       AppCtrlForwardMsg = 0x28B,
  661.       AppCtrlSend = 0x28C,
  662.       AppCtrlAttachFile = 0x28D,
  663.       AppCtrlUpload = 0x28E,
  664.       AppCtrlDownloadSaveTargetAs = 0x28F,
  665.       AppCtrlSetBorders = 0x290,
  666.       AppCtrlInsertRow = 0x291,
  667.       AppCtrlInsertColumn = 0x292,
  668.       AppCtrlInsertFile = 0x293,
  669.       AppCtrlInsertPicture = 0x294,
  670.       AppCtrlInsertObject = 0x295,
  671.       AppCtrlInsertSymbol = 0x296,
  672.       AppCtrlSaveAndClose = 0x297,
  673.       AppCtrlRename = 0x298,
  674.       AppCtrlMerge = 0x299,
  675.       AppCtrlSplit = 0x29A,
  676.       AppCtrlDistributeHorizontally = 0x29B,
  677.       AppCtrlDistributeVertically = 0x29C
  678.     }
  679.  
  680.     /// <summary>
  681.     /// </summary>
  682.     internal enum GenericDesktop : ushort
  683.     {
  684.       Null = 0x00,
  685.       Pointer = 0x01,
  686.       Mouse = 0x02,
  687.       Joystick = 0x04,
  688.       GamePad = 0x05,
  689.       Keyboard = 0x06,
  690.       Keypad = 0x07,
  691.       MultiAxisController = 0x08,
  692.       TabletPcSystemControls = 0x09,
  693.       X = 0x30,
  694.       Y = 0x31,
  695.       Z = 0x32,
  696.       Rx = 0x33,
  697.       Ry = 0x34,
  698.       Rz = 0x35,
  699.       Slider = 0x36,
  700.       Dial = 0x37,
  701.       Wheel = 0x38,
  702.       HatSwitch = 0x39,
  703.       CountedBuffer = 0x3A,
  704.       ByteCount = 0x3B,
  705.       MotionWakeup = 0x3C,
  706.       Start = 0x3D,
  707.       Select = 0x3E,
  708.       Vx = 0x40,
  709.       Vy = 0x41,
  710.       Vz = 0x42,
  711.       Vbrx = 0x43,
  712.       Vbry = 0x44,
  713.       Vbrz = 0x45,
  714.       Vno = 0x46,
  715.       SystemControl = 0x80,
  716.       SystemPowerDown = 0x81,
  717.       SystemSleep = 0x82,
  718.       SystemWakeUp = 0x83,
  719.       SystemContextMenu = 0x84,
  720.       SystemMainMenu = 0x85,
  721.       SystemAppMenu = 0x86,
  722.       SystemMenuHelp = 0x87,
  723.       SystemMenuExit = 0x88,
  724.       SystemMenuSelect = 0x89,
  725.       SystemMenuRight = 0x8A,
  726.       SystemMenuLeft = 0x8B,
  727.       SystemMenuUp = 0x8C,
  728.       SystemMenuDown = 0x8D,
  729.       SystemColdRestart = 0x8E,
  730.       SystemWarmRestart = 0x8F,
  731.       DPadUp = 0x90,
  732.       DPadDown = 0x91,
  733.       DPadRight = 0x92,
  734.       DPadLeft = 0x93,
  735.       SystemDock = 0xA0,
  736.       SystemUndock = 0xA1,
  737.       SystemSetup = 0xA2,
  738.       SystemBreak = 0xA3,
  739.       SystemDebuggerBreak = 0xA4,
  740.       ApplicationBreak = 0xA5,
  741.       ApplicationDebuggerBreak = 0xA6,
  742.       SystemSpeakerMute = 0xA7,
  743.       SystemHibernate = 0xA8,
  744.       SystemDisplayInvert = 0xB0,
  745.       SystemDisplayInternal = 0xB1,
  746.       SystemDisplayExternal = 0xB2,
  747.       SystemDisplayBoth = 0xB3,
  748.       SystemDisplayDual = 0xB4,
  749.       SystemDisplayToggleIntExt = 0xB5,
  750.       SystemDisplaySwapPrimarySecondary = 0xB6,
  751.       SystemDisplayLcdAutoscale = 0xB7
  752.     }
  753.  
  754.     /// <summary>
  755.     /// </summary>
  756.     internal enum SimulationControl : ushort
  757.     {
  758.       Null = 0x00,
  759.       FlightSimulationDevice = 0x01,
  760.       AutomobileSimulationDevice = 0x02,
  761.       TankSimulationDevice = 0x03,
  762.       SpaceshipSimulationDevice = 0x04,
  763.       SubmarineSimulationDevice = 0x05,
  764.       SailingSimulationDevice = 0x06,
  765.       MotorcycleSimulationDevice = 0x07,
  766.       SportsSimulationDevice = 0x08,
  767.       AirplaneSimulationDevice = 0x09,
  768.       HelicopterSimulationDevice = 0x0A,
  769.       MagicCarpetSimulationDevice = 0x0B,
  770.       BicycleSimulationDevice = 0x0C,
  771.       FlightControlStick = 0x20,
  772.       FlightStick = 0x21,
  773.       CyclicControl = 0x22,
  774.       CyclicTrim = 0x23,
  775.       FlightYoke = 0x24,
  776.       TrackControl = 0x25,
  777.       Aileron = 0xB0,
  778.       AileronTrim = 0xB1,
  779.       AntiTorqueControl = 0xB2,
  780.       AutopilotEnable = 0xB3,
  781.       ChaffRelease = 0xB4,
  782.       CollectiveControl = 0xB5,
  783.       DiveBrake = 0xB6,
  784.       ElectronicCountermeasures = 0xB7,
  785.       Elevator = 0xB8,
  786.       ElevatorTrim = 0xB9,
  787.       Rudder = 0xBA,
  788.       Throttle = 0xBB,
  789.       FlightCommunications = 0xBC,
  790.       FlareRelease = 0xBD,
  791.       LandingGear = 0xBE,
  792.       ToeBrake = 0xBF,
  793.       Trigger = 0xC0,
  794.       WeaponsArm = 0xC1,
  795.       WeaponsSelect = 0xC2,
  796.       WingFlaps = 0xC3,
  797.       Accelerator = 0xC4,
  798.       Brake = 0xC5,
  799.       Clutch = 0xC6,
  800.       Shifter = 0xC7,
  801.       Steering = 0xC8,
  802.       TurretDirection = 0xC9,
  803.       BarrelElevation = 0xCA,
  804.       DivePlane = 0xCB,
  805.       Ballast = 0xCC,
  806.       BicycleCrank = 0xCD,
  807.       HandleBars = 0xCE,
  808.       FrontBrake = 0xCF,
  809.       RearBrake = 0xD0
  810.     }
  811.  
  812.     /// <summary>
  813.     /// </summary>
  814.     internal enum GameControl : ushort
  815.     {
  816.       Null = 0x00,
  817.       GameController3D = 0x01,
  818.       PinballDevice = 0x02,
  819.       GunDevice = 0x03,
  820.       PointOfView = 0x20,
  821.       TurnRightLeft = 0x21,
  822.       PitchForwardBackward = 0x22,
  823.       RollRightLeft = 0x23,
  824.       MoveRightLeft = 0x24,
  825.       MoveForwardBackward = 0x25,
  826.       MoveUpDown = 0x26,
  827.       LeanRightLeft = 0x27,
  828.       LeanForwardBackward = 0x28,
  829.       HeightOfPov = 0x29,
  830.       Flipper = 0x2A,
  831.       SecondaryFlipper = 0x2B,
  832.       Bump = 0x2C,
  833.       NewGame = 0x2D,
  834.       ShootBall = 0x2E,
  835.       Player = 0x2F,
  836.       GunBolt = 0x30,
  837.       GunClip = 0x31,
  838.       GunSelector = 0x32,
  839.       GunSingleShot = 0x33,
  840.       GunBurst = 0x34,
  841.       GunAutomatic = 0x35,
  842.       GunSafety = 0x36,
  843.       GamepadFireJump = 0x37,
  844.       GamepadTrigger = 0x39
  845.     }
  846.  
  847.     /// <summary>
  848.     /// </summary>
  849.     internal enum TelephonyDevice : ushort
  850.     {
  851.       Null = 0x00,
  852.       Phone = 0x01,
  853.       AnsweringMachine = 0x02,
  854.       MessageControls = 0x03,
  855.       Handset = 0x04,
  856.       Headset = 0x05,
  857.       TelephonyKeyPad = 0x06,
  858.       ProgrammableButton = 0x07,
  859.       HookSwitch = 0x20,
  860.       Flash = 0x21,
  861.       Feature = 0x22,
  862.       Hold = 0x23,
  863.       Redial = 0x24,
  864.       Transfer = 0x25,
  865.       Drop = 0x26,
  866.       Park = 0x27,
  867.       ForwardCalls = 0x28,
  868.       AlternateFunction = 0x29,
  869.       Line = 0x2A,
  870.       SpeakerPhone = 0x2B,
  871.       Conference = 0x2C,
  872.       RingEnable = 0x2D,
  873.       RingSelect = 0x2E,
  874.       PhoneMute = 0x2F,
  875.       CallerId = 0x30,
  876.       Send = 0x31,
  877.       SpeedDial = 0x50,
  878.       StoreNumber = 0x51,
  879.       RecallNumber = 0x52,
  880.       PhoneDirectory = 0x53,
  881.       VoiceMail = 0x70,
  882.       ScreenCalls = 0x71,
  883.       DoNotDisturb = 0x72,
  884.       Message = 0x73,
  885.       AnswerOnOff = 0x74,
  886.       InsideDialTone = 0x90,
  887.       OutsideDialTone = 0x91,
  888.       InsideRingTone = 0x92,
  889.       OutsideRingTone = 0x93,
  890.       PriorityRingTone = 0x94,
  891.       InsideRingback = 0x95,
  892.       PriorityRingback = 0x96,
  893.       LineBusyTone = 0x97,
  894.       ReorderTone = 0x98,
  895.       CallWaitingTone = 0x99,
  896.       ConfirmationTone1 = 0x9A,
  897.       ConfirmationTone2 = 0x9B,
  898.       TonesOff = 0x9C,
  899.       OutsideRingback = 0x9D,
  900.       Ringer = 0x9E,
  901.       PhoneKey0 = 0xB0,
  902.       PhoneKey1 = 0xB1,
  903.       PhoneKey2 = 0xB2,
  904.       PhoneKey3 = 0xB3,
  905.       PhoneKey4 = 0xB4,
  906.       PhoneKey5 = 0xB5,
  907.       PhoneKey6 = 0xB6,
  908.       PhoneKey7 = 0xB7,
  909.       PhoneKey8 = 0xB8,
  910.       PhoneKey9 = 0xB9,
  911.       PhoneKeyStar = 0xBA,
  912.       PhoneKeyPound = 0xBB,
  913.       PhoneKeyA = 0xBC,
  914.       PhoneKeyB = 0xBD,
  915.       PhoneKeyC = 0xBE,
  916.       PhoneKeyD = 0xBF
  917.     }
  918.   }
  919. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement