PC Review


Reply
Thread Tools Rate Thread

Deleting a registry key containing spaces

 
 
Koen Bruyninckx
Guest
Posts: n/a
 
      9th Jan 2004
Hello,

I am trying to delete a registry key the following way:

DWORD error = 0;
error=SHDeleteKey(HKEY_CURRENT_USER, "Software\\my test");

for some reason this error always equals 0x00000002 in
Winerror.h you can find this meaning:
//
// MessageId: ERROR_FILE_NOT_FOUND
//
// MessageText:
//
// The system cannot find the file specified.
//

Can someone help me with this?
I found it strange that it is even impossible to delete
the key this way:
Start->Run...
regedit [-HKEY_CURRENT_USER\Software\my test]
where regedit sees 2 parameters.

Thanks,
Koen
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting spaces GARY Microsoft Excel Misc 4 17th Aug 2008 09:35 PM
Deleting spaces Pete C Microsoft Access 2 17th May 2008 05:22 PM
Deleting spaces =?Utf-8?B?SmltIEpvbmVz?= Microsoft Access Queries 2 19th Apr 2005 11:45 AM
deleting spaces Continental Translations Microsoft Excel Misc 2 13th Jun 2004 04:54 PM
deleting spaces Anna Microsoft Access Reports 6 8th Jan 2004 09:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:25 PM.