HClient sample application

The HClient sample demonstrates how to write a user-mode client application that communicates with HID devices. (These are devices that conform to the HID device class specification.)

C++ (109.3 KB)
6,943 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • hclient (load failed)
    2 Posts | Last post June 12, 2014
    • how can i build it using VS 2013.
      i follow your instruction and it always failed to load the project?
    • Hi Gerald,
          Can you describe what error you are facing when loading the project. Can you try to open the project with VS opened in elevated credentials (Right Click Visual Studio 2013->Run as Administrator) and let us know the result.
      Sri Harsha
  • Bug setting param->ListLength = 0 in ecdisp.c
    1 Posts | Last post January 24, 2014
    • In ecdisp.c, in vExecuteAndDisplayOutput, in the switch statement, in the case for HIDP_SET_USAGE_VALUE_ARRAY, there is a potential bug. After converting the string to a ULONG list, it sets params->ListLength = 0 after the string has been freed. This causes the call to ECDisp_ConvertUlongListToValueList in ECDisp_Execute's case for HIDP_SET_USAGE_VALUE_ARRAY to assume that there are no values in the list and thus creates an empty Value list.
  • HClient will not run in Dialog mode on Win 8.1 Preview
    2 Posts | Last post July 16, 2013
    • Built HClient on Windows 8.1 Preview using VS 2013 Pro preview. HClient will not run in Dialog mode. 
      Using the command line options does work though.
    • It may fail opening one of the HID devices. Can you try to unplug some HID devices and see if you can narrow it down?
  • hclient (load failed)
    2 Posts | Last post July 10, 2013
    • The hclient project can not be loaded in the solution:
      "hclient (load failed), The project requires user input. Reload the project for more information."
      When right clicking the project and select "Reload Project" the following error message is displayed in the Output window:
      C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v120\Platforms\Win32\ImportAfter\Microsoft.Cpp.WDK.props(10,11): A numeric comparison was attempted on "$(WDKKitVersion)" that evaluates to "" instead of a number, in condition "'$(WDKKitVersion)' >= '8.1'".
      I have Windows 8.1 Preview, Visual Studio 2013 Preview and the WDK for Windows 8.1 Preview installed on my PC.
    • no help here - getting that 'numeric comparison' stuff with everything in vs2013 preview.
  • Can this model be used to create a client application that simulates itself as a USB Composite
    2 Posts | Last post February 01, 2013
    • Can this model be used to create a client application that simulates itself as a USB Composite ?
      USB HID interaction is possible, what about USB composite device communication ?
    • no, you can't simulate usb devices in an application.
  • Non working example
    1 Posts | Last post December 28, 2012
    • DialogBox call returned with 0 and application exits. OS - Windows 7 x64. Also, VS2012 can't open resource from this solution: 
  • Is this up to date?
    1 Posts | Last post May 19, 2012
    • Seems to only exit with code 0 - no interface is opened.  Looks like it would be useful for learning about things if it ran.