dark-moon / vmulti

Automatically exported from code.google.com/p/vmulti
0 stars 0 forks source link

Inconcistency when building vmulticlient.lib #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I have build the library and driver without problems. But when I use the 
library (vmulticlient.lib) i get this result on both x86 and x64.

....looking for our HID device (with UP=0xff00 and Usage=0x1)
Error: CreateFile failed: 5
Error: CreateFile failed: 5
Error: CreateFile failed: 5
Error: CreateFile failed: 32
Error: CreateFile failed: 32
Error: CreateFile failed: 5
Error: CreateFile failed: 5
Success: Found my device..

....looking for our HID device (with UP=0xff00 and Usage=0x2)
Error: CreateFile failed: 5
Error: CreateFile failed: 5
Error: CreateFile failed: 5
Error: CreateFile failed: 32
Error: CreateFile failed: 32
Error: CreateFile failed: 5
Error: CreateFile failed: 5
Error: CreateFile failed: 32
Failure: Could not find our HID device

The weird thing is that I built the lib for x86 once before (2 years ago) and 
if I link to that lib-file everything works if i build for x86 but not for x64 
(I have 64bit driver installed). Back then I built the library using the same 
method as I did today (just running 'build -wcg' in a x86 free build prompt 
from the winddk) but they turn out different. I need to use the library from a 
64bit exe so I need to be able to build it, please advice. 
Or maybe someone can provide me with a working lib-file for x64?

For reference, a successfull run gives only the following output:

....looking for our HID device (with UP=0xFF00 and Usage=0x01)
Error: CreateFile failed: 5
Error: CreateFile failed: 5
Error: CreateFile failed: 5
Error: CreateFile failed: 32
Error: CreateFile failed: 32
Error: CreateFile failed: 32
Error: CreateFile failed: 5
Error: CreateFile failed: 32
Error: CreateFile failed: 5
Success: Found my device..
Allocating 256 windows 7 touch points (10 bytes each)..

Original issue reported on code.google.com by lars.englund on 19 Feb 2013 at 11:13

GoogleCodeExporter commented 9 years ago
Some HIDs are reserved by windows and cannot be opened for writing

Original comment by djpnew...@gmail.com on 27 Nov 2013 at 10:09