Greetings,
I am trying to find information on creating a c# app that allows me to set up a usb connection then read and write to the endpoints.
I downloaded winusb_cs_181 from www.lvr.com and the application can not initialize the UMDF USB device (WinUsb_Initialize & other pinvoked winusb dllimports do not work on the umdf usb device)???
I think Jan’s code works great with a WINUSB driver, but in the case of UMDF, the Winusb is only a filter.
I have the device name and the handle and now I need to figure out how to initialize the device so the endpoints descriptors are populated in application - as WinUsb_Initialize would have done…
Any directions for this task?
if you have a UMDF driver, you use the CreateFile/ReadFile/WriteFile/DeviceIoControl APIs to talk to the device. At that point, you define the IOCTLs you want to expose to your driver and then go from there. If all you want is your appt to talk to the device, skip the UMDF driver and install winusb on the device as the functional driver and then you can call WinUsb_Xxx APIs to your heart’s content
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@mpr.com
Sent: Monday, November 29, 2010 11:52 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] WUDFOsrUsbFx2, winusb and c#
Greetings,
I am trying to find information on creating a c# app that allows me to set up a usb connection then read and write to the endpoints.
I downloaded winusb_cs_181 from www.lvr.com and the application can not initialize the UMDF USB device (WinUsb_Initialize & other pinvoked winusb dllimports do not work on the umdf usb device)???
I think Jan’s code works great with a WINUSB driver, but in the case of UMDF, the Winusb is only a filter.
I have the device name and the handle and now I need to figure out how to initialize the device so the endpoints descriptors are populated in application - as WinUsb_Initialize would have done…
Any directions for this task?
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer