Differentiate different connections from USB driver

Hi:

More questions about USB driver.

If the user opens two connections to the same USB pipe by CreateFile() and then write to the device seperately through the two handles, is it possible for the USB driver to differentiate which IRP is from which handle in the user space?

I opened two handles in the user space and they have different values. However, in the our USB driver, I cannot find anything that can tell me which IRP is from which handle. I was hoping the FILE_OBJECT assocaited with IRP will contain some information but it does not seem to be so.

Thank you very much,

The incoming irp will most definitely have its own file object pointer. How are you checking for the file object?

d

dent from a phine with no keynoard

-----Original Message-----
From: xxxxx@yahoo.com
Sent: Thursday, March 03, 2011 1:06 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Differentiate different connections from USB driver

Hi:

More questions about USB driver.

If the user opens two connections to the same USB pipe by CreateFile() and then write to the device seperately through the two handles, is it possible for the USB driver to differentiate which IRP is from which handle in the user space?

I opened two handles in the user space and they have different values. However, in the our USB driver, I cannot find anything that can tell me which IRP is from which handle. I was hoping the FILE_OBJECT assocaited with IRP will contain some information but it does not seem to be so.

Thank you very much,


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

Thank you Doron:

They are indeeded different pointers. I was checking its contents.

Cheers,