vc中如何删除注册表中指定key的记录
if(RegCreateKeyEx(HKEY_LOCAL_MACHINE, software\\Test, 0, _T(""), REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, &dwDummy)==ERROR_SUCCESS)
{
lRet = RegSetValueEx(hkey, _T("name"), 0, REG_SZ, (LPBYTE)m_strName.GetBuffer(0), 80);
lRet = RegSetValueEx(hkey, _T("Password"), 0, REG_SZ, (LPBYTE)m_strPwd.GetBuffer(0), 80);
RegCloseKey(hkey);
}
创建后如何删除name和password(software\\Test不变)???