Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RegDeleteKey function
Message
From
22/09/2000 08:17:40
 
 
To
22/09/2000 07:45:18
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00419625
Message ID:
00419637
Views:
28
>Hello.
>RegDeleteKey allways return 5. Can anybody explain what is the error.. and maybe where can I find error description in future..

Access is denied. You do not have the necessary permissions. Under NT or Win2K, it may also indicate that you're trying to delete a registry key that has subkeys; NT/2K only permit you to delete a key that has no subkeys. Recursive deletion would require using SHDeleteKey().

You can use ErrLook.EXE which ships as one of the Common Tools with Visual Studio to display the meaning of standard Win32 errors. You can use the FormatMessage() API call to retrieve a generic text description of an error code returned through the API. You can try looking at the MSDN Library entry for RegDeleteKey() which explains possible problems.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform