> I have had a look at the registry with regmon and have isolated the
> key that is changed when a hardware device is disabled. When I try to
> edit this key using regedit, I am denied write access to it. The
> apimon sounds interesting and will give it a try.

Inside regedit.exe, right-click on the key, and hit Permissions (on WinXP,
otherwise try regedt32.exe) and check out the ACL on the key.  This way you
get a clue on what permissions you need to have to run the code.  You might
need to write a Win32 service which runs on the LocalSystem account for
example and change the registry key from within the service.

-------------
Ehsan Akhgari

Farda Technology (http://www.farda-tech.com/)

List Owner: [EMAIL PROTECTED]

[ Email: [EMAIL PROTECTED] ]
[ WWW: http://www.beginthread.com/Ehsan ]

The answers to life's questions lie inside you. All you need to do is look,
listen, and trust.




_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to