A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Security and Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Security and Windows Vista A forum for discussion on security issues with Windows Vista. (microsoft.public.windows.vista.security)

how can I delete registry key value in HKLM



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old September 5th 06, 01:23 PM posted to microsoft.public.windows.vista.security
Rastlin Chen
external usenet poster
 
Posts: 1
Default how can I delete registry key value in HKLM

Hey! I write a driver for usb device.
I can call UpdateDriverForPlugAndPlayDevices to replace inbox driver with my
driver when device is on system.
But if device is not on system, I must delete HKLM/CurrentControlSet/
Enum/USB/{ID Value} to force device recgonize
when it replug on system.
In XP I can delete it, but how can I do it in Vista?
Thanks a lot!






  #2 (permalink)  
Old September 5th 06, 01:39 PM posted to microsoft.public.windows.vista.security
Jimmy Brush
external usenet poster
 
Posts: 827
Default how can I delete registry key value in HKLM

Hello,

Your setup program must ask to be ran "as administrator" in order to perform
these functions. Otherwise, Windows Vista will run the program as a standard
user, which will not be able to change registry keys under HKLM.

Here is a very detailed document explaining how to do this:

http://msdn.microsoft.com/library/en...asp?frame=true


--
- JB

Windows Vista Support Faq
http://www.jimmah.com/vista/

  #3 (permalink)  
Old September 8th 06, 01:42 PM posted to microsoft.public.windows.vista.security
Jamie Hunter [MS]
external usenet poster
 
Posts: 39
Default how can I delete registry key value in HKLM

Hi, wrong news group, but please refer to the "devcon" example in the DDK
for performing re-install of devices. Do not delete these keys... One time I
spent weeks debugging end-users issues because a driver installer writer of
a single unnamed product decided to modify the Enum keys directly! Search
for "Device Installs: The Good, the Bad and the Ugly" to find a WinHEC 2002
presentation on these issues.

-
Jamie Hunter [MS]

"Rastlin Chen" wrote in message
...
Hey! I write a driver for usb device.
I can call UpdateDriverForPlugAndPlayDevices to replace inbox driver with
my
driver when device is on system.
But if device is not on system, I must delete HKLM/CurrentControlSet/
Enum/USB/{ID Value} to force device recgonize
when it replug on system.
In XP I can delete it, but how can I do it in Vista?
Thanks a lot!







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2024 Vista Banter.
The comments are property of their posters.