Reg device instance id

Hi,
I will load the driver for multiple pcie devices.I should identify in the application that the first installed pcie device should have identifier ‘a’ and second installed device should have identifier ‘b’.How to accomplish this.I thought of device instance id.But it is not a number as i thought.It is hash code.Based on this should i?if yes ,please tell me how i can do this or is there any other alternatives.

thanks in advance,

Why is order important ? The order of installation of devices is not defined. You can plug in a, b, c and have them installed in the order of c,a,b or any other possible combo.

d

debt from my phone

-----Original Message-----
From: xxxxx@rediffmail.com
Sent: Tuesday, July 12, 2011 7:37 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Reg device instance id

Hi,
I will load the driver for multiple pcie devices.I should identify in the application that the first installed pcie device should have identifier ‘a’ and second installed device should have identifier ‘b’.How to accomplish this.I thought of device instance id.But it is not a number as i thought.It is hash code.Based on this should i?if yes ,please tell me how i can do this or is there any other alternatives.

thanks in advance,


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

You need to use device unique identifiers (serial numbers for example)
that are independent of the registry entries.

Mark Roddy

On Tue, Jul 12, 2011 at 10:36 AM, wrote:
> Hi,
> I will load the driver for multiple pcie devices.I should identify in the application that the first installed pcie device should have identifier ‘a’ and second installed device should have identifier ‘b’.How to accomplish this.I thought of device instance id.But it is not a number as i thought.It is hash code.Based on this should i?if yes ,please tell me how i can do this or is there any other alternatives.
>
> thanks in advance,
>
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>

xxxxx@rediffmail.com wrote:

I will load the driver for multiple pcie devices.I should identify in the application that the first installed pcie device should have identifier ‘a’ and second installed device should have identifier ‘b’.How to accomplish this.I thought of device instance id.But it is not a number as i thought.It is hash code.Based on this should i?if yes ,please tell me how i can do this or is there any other alternatives.

Unless you change the motherboard, the devices will enumerate in the
same order every time. You can assign these identifiers yourself.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.