mfc app
以 Administrator 登录但
RegDeleteKey(HKEY_LOCAL_MACHINE,L"SYSTEM\\CurrentControlSet\\Services\\123");时
返回 ERROR_ACCESS_DENIED像这种错误怎么解决?
如何在应用程序中得到权限?
以 Administrator 登录但
RegDeleteKey(HKEY_LOCAL_MACHINE,L"SYSTEM\\CurrentControlSet\\Services\\123");时
返回 ERROR_ACCESS_DENIED像这种错误怎么解决?
如何在应用程序中得到权限?
Windows NT/2000/XP: The subkey to be deleted must not have subkeys. To delete a key and all its subkeys, you need to recursively enumerate the subkeys and delete them individually. To recursively delete keys, use the SHDeleteKey function.
2、先删除其下的value和key