how to obtain a pointer to device object?

Hi!

I am writing a tdi filter driver through hooking the tcpip’s dispatch routine, anyone can give me some advices on how to obtain a pointer to device object(e.g \Device\Tcp)?

Best Regards,
Yuntao Guan
2007-12-12

You will do Rtlunicodestring using the \Device\TCP and give in the pointer to the \Device\TCP to IOcreate function in add device routine.

Your IOcreate gives you the pointer to the device object.

Regards,
J. Joshua David

IoGetDeviceObjectPointer()?

good luck (your going to need it),
-dave

David R. Cattley
Consulting Engineer
Systems Software Development


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Yuntao Guan
Sent: Wednesday, December 12, 2007 8:58 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] how to obtain a pointer to device object?

Hi!

I am writing a tdi filter driver through hooking the tcpip’s dispatch
routine, anyone can give me some advices on how to obtain a pointer to
device object(e.g \Device\Tcp)?

Best Regards,
Yuntao Guan
2007-12-12


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