bool CModule::ClearNV(bool bWriteToDisk) { m_mssRegistry.clear(); if (bWriteToDisk) { return SaveRegistry(); } return true; }
bool CModule::SetNV(const CString & sName, const CString & sValue, bool bWriteToDisk) { m_mssRegistry[sName] = sValue; if (bWriteToDisk) { return SaveRegistry(); } return true; }
CModule::~CModule() { while (!m_sTimers.empty()) { RemTimer(*m_sTimers.begin()); } while (!m_sSockets.empty()) { RemSocket(*m_sSockets.begin()); } SaveRegistry(); }
bool CModule::DelNV(const CString & sName, bool bWriteToDisk) { MCString::iterator it = m_mssRegistry.find(sName); if (it != m_mssRegistry.end()) { m_mssRegistry.erase(it); } else { return false; } if (bWriteToDisk) { return SaveRegistry(); } return true; }
bool Save() { MSCString::iterator it; ClearNV(false); for (it = m_PubKeys.begin(); it != m_PubKeys.end(); it++) { CString sVal; SCString::iterator it2; for (it2 = it->second.begin(); it2 != it->second.end(); it2++) { sVal += *it2 + " "; } if (!sVal.empty()) SetNV(it->first, sVal, false); } return SaveRegistry(); }
void CProfile::SaveData() { DeleteAllRegistryData(); SaveRegistry(); SetDllData(); }