Tech Support > Microsoft Windows > Drivers > Multiple devices ?
Multiple devices ?
Posted by Anders on December 19th, 2004


I have an old WindowsNT ISA driver with two devices, I have rewritten the
driver with pnp and power management and attached the devices to the stack
etc.
My problem is how do I for example in my IRP_MJ_CREATE function, know to
which device the message is intend to ? , or do i have to write a
multifunction driver ?
Thanks in advance!

Posted by Don Burn on December 19th, 2004


You should have two device objects (one for each device). In IRP_MJ_XXX
calls one of the arguments is your device object. If you use the device
extension to hold device specific data, including the next device to call
for services you should be all set.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

"Anders" <Anders@discussions.microsoft.com> wrote in message
news:6CD15FEA-06CE-4715-BE39-50F24187C07A@microsoft.com...


Posted by Anders on December 20th, 2004


Yes thats right ! - but the problem is that in my IRP_MJ_XXX function i don't
know which device the call is intended for - is there some value in the PDO
or Irp:n that says which device the call is for? I can see that the Pdo holds
my specefic data - and a pointer to my next device - but i don't know to
whith the call is for!
/Anders

"Don Burn" wrote:

Posted by Anders on December 20th, 2004


!OK I found the variable i was looking for
/Anders

"Anders" wrote:


Similar Posts