Hi All,
My WDM driver controls 2 boards(PCI and ISA) which is
having an AddDevice() routine for creating device
objects.
I would like to know a mechanism to distiguish between
the device objects that were created.what I mean is
for ex, DeviceObject1 -> created for PCI board
DeviceObject2 -> created for ISA board.
Can some body provide some inputs?
Regards,
Murthy.
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Try using IoGetDeviceProperty with property type
DevicePropertyEnumeratorName in your AddDevice routine. Once you have
that information you can either:
- store it in your device object extension and test it ad nauseum
- use a c++ class based design and never have to test it again

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Murthy Vinjamuri
Sent: Thursday, June 06, 2002 9:59 PM
To: NT Developers Interest List
Subject: [ntdev] Distinguish between device objects
Hi All,
My WDM driver controls 2 boards(PCI and ISA) which is
having an AddDevice() routine for creating device
objects.
I would like to know a mechanism to distiguish between
the device objects that were created.what I mean is
for ex, DeviceObject1 -> created for PCI board
DeviceObject2 -> created for ISA board.
Can some body provide some inputs?
Regards,
Murthy.
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
You are currently subscribed to ntdev as: xxxxx@hollistech.com To
unsubscribe send a blank email to %%email.unsub%%
You can query a bus type and bus type GUID by sending the PnP IRP down
the stack or IIRC IoGetDeviceProperty.
Max
----- Original Message -----
From: “Murthy Vinjamuri”
To: “NT Developers Interest List”
Sent: Friday, June 07, 2002 5:59 AM
Subject: [ntdev] Distinguish between device objects
> Hi All,
>
> My WDM driver controls 2 boards(PCI and ISA) which is
> having an AddDevice() routine for creating device
> objects.
>
> I would like to know a mechanism to distiguish between
> the device objects that were created.what I mean is
> for ex, DeviceObject1 -> created for PCI board
> DeviceObject2 -> created for ISA board.
>
> Can some body provide some inputs?
>
> Regards,
> Murthy.
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>
Hi Mark,
I am just getting ‘P’ instead of ‘PCI’ as a return
value for this function.Any inputs?
thanks.
— Mark Roddy wrote:
> Try using IoGetDeviceProperty with property type
> DevicePropertyEnumeratorName in your AddDevice
> routine. Once you have
> that information you can either:
>
> 1) store it in your device object extension and test
> it ad nauseum
> 2) use a c++ class based design and never have to
> test it again 
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf
> Of Murthy Vinjamuri
> > Sent: Thursday, June 06, 2002 9:59 PM
> > To: NT Developers Interest List
> > Subject: [ntdev] Distinguish between device
> objects
> >
> >
> > Hi All,
> >
> > My WDM driver controls 2 boards(PCI and ISA) which
> is
> > having an AddDevice() routine for creating device
> > objects.
> >
> > I would like to know a mechanism to distiguish
> between
> > the device objects that were created.what I mean
> is
> > for ex, DeviceObject1 -> created for PCI board
> > DeviceObject2 -> created for ISA board.
> >
> > Can some body provide some inputs?
> >
> > Regards,
> > Murthy.
> >
> >
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@hollistech.com To
> unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
%%email.unsub%%
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
>I am just getting ‘P’ instead of ‘PCI’ as a return
value for this function.Any inputs?
Sounds like Unicode “PCI” perhaps. Each character is two bytes. Unicode
buffers would need the correct size limit too.
Thanks for the reply. How do I compare once the call
made to the below function. Please let me know.
thanks.
— Mark Roddy wrote:
> Try using IoGetDeviceProperty with property type
> DevicePropertyEnumeratorName in your AddDevice
> routine. Once you have
> that information you can either:
>
> 1) store it in your device object extension and test
> it ad nauseum
> 2) use a c++ class based design and never have to
> test it again 
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf
> Of Murthy Vinjamuri
> > Sent: Thursday, June 06, 2002 9:59 PM
> > To: NT Developers Interest List
> > Subject: [ntdev] Distinguish between device
> objects
> >
> >
> > Hi All,
> >
> > My WDM driver controls 2 boards(PCI and ISA) which
> is
> > having an AddDevice() routine for creating device
> > objects.
> >
> > I would like to know a mechanism to distiguish
> between
> > the device objects that were created.what I mean
> is
> > for ex, DeviceObject1 -> created for PCI board
> > DeviceObject2 -> created for ISA board.
> >
> > Can some body provide some inputs?
> >
> > Regards,
> > Murthy.
> >
> >
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@hollistech.com To
> unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
%%email.unsub%%
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
Yeah, I suspect you are mistreating the returned value as char instead
of wchar. The enumerator of Pci devices is PCI.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Murthy Vinjamuri
Sent: Monday, June 10, 2002 8:53 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Distinguish between device objects
Hi Mark,
I am just getting ‘P’ instead of ‘PCI’ as a return
value for this function.Any inputs?
thanks.
— Mark Roddy wrote:
> > Try using IoGetDeviceProperty with property type
> > DevicePropertyEnumeratorName in your AddDevice routine.
> Once you have
> > that information you can either:
> >
> > 1) store it in your device object extension and test
> > it ad nauseum
> > 2) use a c++ class based design and never have to
> > test it again 
> >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf
> > Of Murthy Vinjamuri
> > > Sent: Thursday, June 06, 2002 9:59 PM
> > > To: NT Developers Interest List
> > > Subject: [ntdev] Distinguish between device
> > objects
> > >
> > >
> > > Hi All,
> > >
> > > My WDM driver controls 2 boards(PCI and ISA) which
> > is
> > > having an AddDevice() routine for creating device
> > > objects.
> > >
> > > I would like to know a mechanism to distiguish
> > between
> > > the device objects that were created.what I mean
> > is
> > > for ex, DeviceObject1 -> created for PCI board DeviceObject2 ->
> > > created for ISA board.
> > >
> > > Can some body provide some inputs?
> > >
> > > Regards,
> > > Murthy.
> > >
> > >
> > > Do You Yahoo!?
> > > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@hollistech.com To
> > unsubscribe send a blank email to %%email.unsub%%
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> %%email.unsub%%
>
>
>
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@hollistech.com To unsubscribe send a blank email to
> %%email.unsub%%
>