Ref: InstanceName in WMI

Hi,
I have one doubt regarding the instance names if I
have 2 similar controllers with same F/W revision on
the same system.
I am little bit shortsighted on how would I query
through WMI in such an enviornment.

Any comments/suggestions are welcome.

Thanks and Regards,
Gurpreet Anand


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail

Are you using the instance path / PDO to do your naming? Ie, passing
WMIREG_FLAG_INSTANCE_PDO during registration? If so, the name is not
deterministic, esp if there is more then one instance. You should query
for all instances of the WMI GUID you are interested in and then use the
information return from the query to determine which controller you have
just received data from.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gurpreet Anand
Sent: Monday, July 26, 2004 2:42 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Ref: InstanceName in WMI

Hi,
I have one doubt regarding the instance names if I
have 2 similar controllers with same F/W revision on
the same system.
I am little bit shortsighted on how would I query
through WMI in such an enviornment.

Any comments/suggestions are welcome.

Thanks and Regards,
Gurpreet Anand


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hello Doron,
I am writing WMI for miniport drivers and not sure if
WMIREG_FLAG_INSTANCE_PDO flags can be used at that
level.
Regards,
Gurpreet
— Doron Holan wrote:
> Are you using the instance path / PDO to do your
> naming? Ie, passing
> WMIREG_FLAG_INSTANCE_PDO during registration? If
> so, the name is not
> deterministic, esp if there is more then one
> instance. You should query
> for all instances of the WMI GUID you are interested
> in and then use the
> information return from the query to determine which
> controller you have
> just received data from.
>
> d
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf
> Of Gurpreet Anand
> Sent: Monday, July 26, 2004 2:42 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Ref: InstanceName in WMI
>
> Hi,
> I have one doubt regarding the instance names if I
> have 2 similar controllers with same F/W revision on
> the same system.
> I am little bit shortsighted on how would I query
> through WMI in such an enviornment.
>
> Any comments/suggestions are welcome.
>
> Thanks and Regards,
> Gurpreet Anand
>
>
>
>
>
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>


Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo

When you register a WMI instance with your port driver, are you
providing an instance name in the regsistration? Or are your instances
names the instance path + “_0” (or some other number replacing the 0),
ie pci\Xxxx\Yyyy_0? If it is the latter, then this flag is being used
on your behalf in the port driver. The answer remains the same, you
must query all instances to find the one you are looking for and
hardcoding the instance name is not going to work across multiple
platforms and multiple instances.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gurpreet Anand
Sent: Monday, July 26, 2004 5:56 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Ref: InstanceName in WMI

Hello Doron,
I am writing WMI for miniport drivers and not sure if
WMIREG_FLAG_INSTANCE_PDO flags can be used at that
level.
Regards,
Gurpreet
— Doron Holan wrote:
> Are you using the instance path / PDO to do your
> naming? Ie, passing
> WMIREG_FLAG_INSTANCE_PDO during registration? If
> so, the name is not
> deterministic, esp if there is more then one
> instance. You should query
> for all instances of the WMI GUID you are interested
> in and then use the
> information return from the query to determine which
> controller you have
> just received data from.
>
> d
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf
> Of Gurpreet Anand
> Sent: Monday, July 26, 2004 2:42 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Ref: InstanceName in WMI
>
> Hi,
> I have one doubt regarding the instance names if I
> have 2 similar controllers with same F/W revision on
> the same system.
> I am little bit shortsighted on how would I query
> through WMI in such an enviornment.
>
> Any comments/suggestions are welcome.
>
> Thanks and Regards,
> Gurpreet Anand
>
>
>
>
>
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>


Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Thanks Doron,
It is the latter case. I can see +_0 in the instance
name.

Regards,
Gurpreet
— Doron Holan wrote:
> When you register a WMI instance with your port
> driver, are you
> providing an instance name in the regsistration? Or
> are your instances
> names the instance path + “_0” (or some other number
> replacing the 0),
> ie pci\Xxxx\Yyyy_0? If it is the latter, then this
> flag is being used
> on your behalf in the port driver. The answer
> remains the same, you
> must query all instances to find the one you are
> looking for and
> hardcoding the instance name is not going to work
> across multiple
> platforms and multiple instances.
>
> d
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf
> Of Gurpreet Anand
> Sent: Monday, July 26, 2004 5:56 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Ref: InstanceName in WMI
>
> Hello Doron,
> I am writing WMI for miniport drivers and not sure
> if
> WMIREG_FLAG_INSTANCE_PDO flags can be used at that
> level.
> Regards,
> Gurpreet
> — Doron Holan
> wrote:
> > Are you using the instance path / PDO to do your
> > naming? Ie, passing
> > WMIREG_FLAG_INSTANCE_PDO during registration? If
> > so, the name is not
> > deterministic, esp if there is more then one
> > instance. You should query
> > for all instances of the WMI GUID you are
> interested
> > in and then use the
> > information return from the query to determine
> which
> > controller you have
> > just received data from.
> >
> > d
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On
> Behalf
> > Of Gurpreet Anand
> > Sent: Monday, July 26, 2004 2:42 PM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] Ref: InstanceName in WMI
> >
> > Hi,
> > I have one doubt regarding the instance names if I
> > have 2 similar controllers with same F/W revision
> on
> > the same system.
> > I am little bit shortsighted on how would I query
> > through WMI in such an enviornment.
> >
> > Any comments/suggestions are welcome.
> >
> > Thanks and Regards,
> > Gurpreet Anand
> >
> >
> >
> >
> >
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - Send 10MB messages!
> > http://promotions.yahoo.com/new_mail
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> > xxxxx@windows.microsoft.com
> > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
>
>
>
>
>

> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile
> phone.
> http://mobile.yahoo.com/maildemo
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>

__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail