|
Prev: How to call the kernel API which is not in the DDK document!
Next: IOCTL_MOUNTMGR_VOLUME_ARRIVAL_NOTIFICATION error
From: 江民 on 7 May 2008 20:51 In my driver, i need to check the registry information in \\Registry\ \Machine\\System\\CurrentControlSet\\Control\\Class\\{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.
From: Pavel A. on 7 May 2008 21:05 "??" <dongy117(a)gmail.com> wrote in message news:be28fa0b-6184-4bd1-b5bc-6bf809d904f9(a)h1g2000prh.googlegroups.com... > In my driver, i need to check the registry information in \\Registry\ > \Machine\\System\\CurrentControlSet\\Control\\Class\\{4D36E96A- > E325-11CE-BFC1-08002BE10318}\\0000\\settings". > And i want to know does all the OS has the same position to same these > information? > Use SetupDiOpenClassRegKey. --PA
From: Maxim S. Shatskih on 8 May 2008 04:11 Why do you need to use this exotic registry key name? -- Maxim Shatskih, Windows DDK MVP StorageCraft Corporation maxim(a)storagecraft.com http://www.storagecraft.com "??" <dongy117(a)gmail.com> wrote in message news:be28fa0b-6184-4bd1-b5bc-6bf809d904f9(a)h1g2000prh.googlegroups.com... > In my driver, i need to check the registry information in \\Registry\ > \Machine\\System\\CurrentControlSet\\Control\\Class\\{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.
From: 江民 on 8 May 2008 20:12 On May 8, 5:11 pm, "Maxim S. Shatskih" <ma...(a)storagecraft.com> wrote: > Why do you need to use this exotic registry key name? > > -- > Maxim Shatskih, Windows DDK MVP > StorageCraft Corporation > ma...(a)storagecraft.comhttp://www.storagecraft.com > > "??" <dongy...(a)gmail.com> wrote in message > > news:be28fa0b-6184-4bd1-b5bc-6bf809d904f9(a)h1g2000prh.googlegroups.com... > > > > > In my driver, i need to check the registry information in \\Registry\ > > \Machine\\System\\CurrentControlSet\\Control\\Class\\{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.- Hide quoted text - > > - Show quoted text - 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.
From: Maxim S. Shatskih on 9 May 2008 02:35
>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. 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(a)storagecraft.com http://www.storagecraft.com |