Re: Service Enum params
From: Hablu (anonymous_at_discussions.microsoft.com)
Date: 06/08/04
- Next message: zde: "Re: Switching from drv to svc"
- Previous message: nospam_at_cristalink.com: "Re: not possible to write to files with names like *com.dll"
- In reply to: Peter Wieland [MSFT]: "Re: Service Enum params"
- Next in thread: Peter Wieland [MSFT]: "Re: Service Enum params"
- Reply: Peter Wieland [MSFT]: "Re: Service Enum params"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 8 Jun 2004 14:26:09 -0700
> particularly since you're naming your device with a number.
I need to clarify a bit. The virtual bus driver is root enumerated so the PDO naming is done by the root bus driver. So, that name comes from OS's own driver. I have watched the value after disable\enable and found the value same, but I don't know how long it'll be same specially with service packs and future NT versions.
Thanks,
Hablu
----- Peter Wieland [MSFT] wrote: -----
that depends entirely on your driver, but the answer is likely to be "no" -
particularly since you're naming your device with a number.
A device interface registered by the driver will have a constant name (some
long blob of gook with a GUID in it) iff the device retains the same PNP ID
every time it's started. You should probably go with that instead of
physical object name.
-p
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hablu" <anonymous@discussions.microsoft.com> wrote in message
news:25EF4EBA-4E08-4DA0-8E8E-C272CBF27125@microsoft.com...
>I was looking for a consistent indexing scheme for PDO's ID generation.
>When the application tries to install another instance of bus driver, it
>does not know whether the already installed bus driver is disabled or
>uninstalled since root bus driver has that info. NextInstance seemed to be
>very handy since it reflects the number of units installed for a bus
>driver.
>> Anyway, I have got it managed by some other ways.
>> I got one more question:
>> Will DevicePropertyPhysicalDeviceObjectName returned by PDO be same if the
> device is disabled then some other device installation activities are done
> and enabled again?
> Say DevicePropertyPhysicalDeviceObjectName returns \Device\00000007
> will it be same always after disable\enable?
>> Thanks,
> Hablu
>> ----- Doron Holan [MS] wrote: -----
>> No, you can't. what are you trying to use this key for?
>>
- Next message: zde: "Re: Switching from drv to svc"
- Previous message: nospam_at_cristalink.com: "Re: not possible to write to files with names like *com.dll"
- In reply to: Peter Wieland [MSFT]: "Re: Service Enum params"
- Next in thread: Peter Wieland [MSFT]: "Re: Service Enum params"
- Reply: Peter Wieland [MSFT]: "Re: Service Enum params"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|