1、打开该键值
2、删除
3、关闭
例子:
HKEY hKey;
LONG lRet;
lRet = RegOpenKeyEx( HKEY_LOCAL_MACHINE,
TEXT("SYSTEM//CurrentControlSet//Control//Session Manager"),
0, KEY_QUERY_VALUE| KEY_WRITE, &hKey );
if( lRet == ERROR_SUCCESS )
{
RegDeleteValue(hKey, TEXT("PendingFileRenameOperations"));
RegCloseKey(hKey);
}
2、删除
3、关闭
例子:
HKEY hKey;
LONG lRet;
lRet = RegOpenKeyEx( HKEY_LOCAL_MACHINE,
TEXT("SYSTEM//CurrentControlSet//Control//Session Manager"),
0, KEY_QUERY_VALUE| KEY_WRITE, &hKey );
if( lRet == ERROR_SUCCESS )
{
RegDeleteValue(hKey, TEXT("PendingFileRenameOperations"));
RegCloseKey(hKey);
}