KMDF driver with 2 Bulk In endpoints

Hi,

I am migrating from the BulkUsb driver, to a KMDF driver based on the OSRUSBFX2 sample.

My device has 1 Bulk Out endpoint, and 2 Bulk In endpoints.

I have 1 Out endpoint, and 1 In endpoint working just fine.

Tthe BulkUsb driver has WDM layers for parsing the file name to let one open a pipe to an given endpoint, does any one have a sample of how to do this with a KMDF driver?

I need know how to configure this KMDF driver, so each Bulk In endpoint can be individually opened.

Thanks,
Robert
(sorry if this gets double posted, I think my session timed out.)

xxxxx@hotmail.com wrote:

I am migrating from the BulkUsb driver, to a KMDF driver based on the OSRUSBFX2 sample.

My device has 1 Bulk Out endpoint, and 2 Bulk In endpoints.

I have 1 Out endpoint, and 1 In endpoint working just fine.

Tthe BulkUsb driver has WDM layers for parsing the file name to let one open a pipe to an given endpoint, does any one have a sample of how to do this with a KMDF driver?

I need know how to configure this KMDF driver, so each Bulk In endpoint can be individually opened.

Your EvtDeviceFileCreate callback will receive a WDFFILEOBJECT. If you
pass that WDFFILEOBJECT to WdfFileObjectGetFileName, that will give you
a UNICODE_STRING with the extra part of the file name, just like in a
WDF driver.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Please note that the PUNICODE_STRING that is returned can be null (if the app misbehaves and does not append the endpoint number to the filename) and you should check for this before dereferencing it

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Thursday, September 11, 2008 5:21 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] KMDF driver with 2 Bulk In endpoints

xxxxx@hotmail.com wrote:

I am migrating from the BulkUsb driver, to a KMDF driver based on the OSRUSBFX2 sample.

My device has 1 Bulk Out endpoint, and 2 Bulk In endpoints.

I have 1 Out endpoint, and 1 In endpoint working just fine.

Tthe BulkUsb driver has WDM layers for parsing the file name to let one open a pipe to an given endpoint, does any one have a sample of how to do this with a KMDF driver?

I need know how to configure this KMDF driver, so each Bulk In endpoint can be individually opened.

Your EvtDeviceFileCreate callback will receive a WDFFILEOBJECT. If you
pass that WDFFILEOBJECT to WdfFileObjectGetFileName, that will give you
a UNICODE_STRING with the extra part of the file name, just like in a
WDF driver.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


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