Tech Support > Microsoft Windows > Drivers > Does Windows XP , Windows 2000 and Vista has the same registryposition?
Does Windows XP , Windows 2000 and Vista has the same registryposition?
Posted by ½­Ãñ on May 8th, 2008


In my driver, i need to check the registry information in \\Registry\
\Machine\\System\\CurrentControlSet\\Control\\Clas s\\{4D36E96A-
E325-11CE-BFC1-08002BE10318}\\0000\\settings".
And i want to know does all the OS has the same position to same these
information?

thanks.

Posted by Pavel A. on May 8th, 2008


"??" <dongy117@gmail.com> wrote in message
news:be28fa0b-6184-4bd1-b5bc-6bf809d904f9@h1g2000prh.googlegroups.com...
Use SetupDiOpenClassRegKey.

--PA



Posted by Tim Roberts on May 8th, 2008


???? <dongy117@gmail.com> wrote:
My computer doesn't have that key at all. I have 0003, 0004, 0005, 0006,
0007 and 0008, and none of them have a "Settings" subkey.

If you are a filter driver in this stack, you can use
IoOpenDeviceRegistryKey for this.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Posted by Maxim S. Shatskih on May 8th, 2008


Why do you need to use this exotic registry key name?

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"??" <dongy117@gmail.com> wrote in message
news:be28fa0b-6184-4bd1-b5bc-6bf809d904f9@h1g2000prh.googlegroups.com...

Posted by ½­Ãñ on May 9th, 2008


On May 8, 5:11*pm, "Maxim S. Shatskih" <ma...@storagecraft.com> wrote:
I write one miniport driver and two display driver for graphic card,
so in miniport driver i must decide which display driver will be used.
so i change the display driver setting in the registry, and os will
call the right display driver.

Posted by Maxim S. Shatskih on May 9th, 2008


The ...\Class\{guid}\%04d registry keys are so-called "device registry keys" of
PLUGPLAY_REGKEY_DEVICE kind.

WDM has a special API of IoOpenDeviceRegistryKey to access this key for _your
own_ devnode, probably VideoPrt also has one.

Opening them by name is a very bad idea, in this case, at least ensure you have
enumerated all possible %04d numbers, and used the correct GUID for Display
class from the header files.

You can also expose an IOCTL in the miniport and make the graphics DLL call it.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


Posted by ½­Ãñ on May 9th, 2008


Hi Maxim:
Thanks for you advice!

My driver is XDDM type, and all the interface functions
exported by videoport use hardware extension structure, the "device
object" which is used by IoOpenDeviceRegistryKey can't be got.

Also before i can use the ioctl, i will need to know
which display driver should be used, So the IOCTl also can't be used.