IoCreateDevice

Can I call IoCreateDevice() from an NDIS Intermediate driver ?

Thanks
Matt

You can use IoCreateDevice for a Windows NT NDIS IM driver.

However, for Windows Me and Windows 2000 you should consider using
NdisMRegisterDevice or NdisIMRegisterDevice.

Good luck,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - TDI Client - Windows 95 Redirector
http:

----- Original Message -----
From: Matteo Pelati
To: NT Developers Interest List
Sent: Sunday, November 26, 2000 12:27 PM
Subject: [ntdev] IoCreateDevice

Can I call IoCreateDevice() from an NDIS Intermediate driver ?

Thanks
Matt</http:>

Yes, but for w2k drivers it is better to call NdisMRegisterDevice(). This
function isn’t available on NT4 and there is a problem because NDIS installs
own IRP handlers when miniport or protocol is registered. In this case you
have to save NDIS handlers afterwards and install own. You handlers have to
always test if an request is for your or for other device and send it to
appropriatte handler. NdisMRegisterDevice() handles this routing
automatically.

Best regards,

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


From: Matteo Pelati[SMTP:xxxxx@dolce.it]
Reply To: NT Developers Interest List
Sent: Sunday, November 26, 2000 6:27 PM
To: NT Developers Interest List
Subject: [ntdev] IoCreateDevice

Can I call IoCreateDevice() from an NDIS Intermediate driver ?

Thanks
Matt

Yes. NDIS miniport drivers shd abstain from calling it and instead use
NdisMRegisterDevice but intermediate drivers can call it followed by a
IoAttachDevice to attach the logical device to the driver stack. This
would required if it is to receive IRPs from the IO system.

Suyash

-----Original Message-----
From: Matteo Pelati [mailto:xxxxx@dolce.it]
Sent: Sunday, November 26, 2000 9:28 AM
To: NT Developers Interest List
Subject: [ntdev] IoCreateDevice

Can I call IoCreateDevice() from an NDIS Intermediate driver ?

Thanks
Matt