From: eBoy on
Hi,
Thank again.
I have a question on registry access on Windows 7.

I try to add a filter on USB Stack, and it needs to establish services
key on windows registry.
but Windows 7 refuses my MACHINE\SYSTEM\CurrentControlSet\Enum
creating request.

I can add a service key under Enum\Services for my filter, but I can
not add this "Upperfilters" key on my hw device tree.
In fact, I can use SetNameSecurityInfo(..) to update SAM registrykey
in DACL while the OS is WinXP.
Windows 7 do not work any more, is there any solution to add registry
key under (/ Enum / usb ) registry key if programming ??

Thank you very much.
From: Maxim S. Shatskih on
> but Windows 7 refuses my MACHINE\SYSTEM\CurrentControlSet\Enum
> creating request.

Do not use such pathnames, use IoOpenDeviceRegistryKey instead.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Doron Holan [MSFT] on
you should not be touching the key directly, you need to use the appropriate
APIs to make the changes for you

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"eBoy" <minkids(a)ms46.url.com.tw> wrote in message
news:d0de5a4f-8178-4418-b28b-3536c5d9ffd7(a)w20g2000prm.googlegroups.com...
> Hi,
> Thank again.
> I have a question on registry access on Windows 7.
>
> I try to add a filter on USB Stack, and it needs to establish services
> key on windows registry.
> but Windows 7 refuses my MACHINE\SYSTEM\CurrentControlSet\Enum
> creating request.
>
> I can add a service key under Enum\Services for my filter, but I can
> not add this "Upperfilters" key on my hw device tree.
> In fact, I can use SetNameSecurityInfo(..) to update SAM registrykey
> in DACL while the OS is WinXP.
> Windows 7 do not work any more, is there any solution to add registry
> key under (/ Enum / usb ) registry key if programming ??
>
> Thank you very much.