RE: Creating deviceobject using NdisMregisterDevice - Sol- ution

> ----------

From: Mohasin Zaki Syed[SMTP:xxxxx@wipro.com]
Reply To: NT Developers Interest List
Sent: Saturday, May 26, 2001 10:59 AM
To: NT Developers Interest List
Subject: [ntdev] Creating deviceobject using NdisMregisterDevice -
Solution

Hi people,
Thanks to all your help that i was able to solve this problem. Thanks
Vitaly for giving me the tip.

If you want to create a Standalone device object in Ndis Intermediate
Driver we can use

  1. IoCreateDevice and then Using IoCreateSymbolicLink.
    [or]
  2. NdisMRegisterDevice (This create a named deivceobject and a
    symbolic
    name for it)

Though both succeed in creating a deviceobject, it is only
NdisMRegisterDevice that is useful to us.
Because, using IoCreateDevice doesn’t route the IRPs to your
DispatchRoutine(I think those IRPs are getting mapped into something else
by
the NDIS wrapper).

Whereas if you use NdisMRegisterDevice, the IRPs get routed to your
deviceObject and your dispatch routines can handle it.

Just a note: IoCreateDevice() can be used for this purpose but you have to
do additional work which NdisMRegisterDevice handles. It is necessary to
save NDIS IRP handers, set your own and always check if the IRP is sent to
your device object. If not, you have to call saved handler. I use this way
on NT4 where NdisMRegisterDevice isn’t available.

Best regards,

Michal Vodicka
Veridicom
(RKK - Skytale)
[WWW: http://www.veridicom.com , http://www.skytale.com]


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com