void CT42App::SaveSettings() { WriteProfileInt("Settings","AwayOnScreenSaver",m_bAwayOnScreenSaver); Klever::SaveStringList(m_t42Callees,"T42HotList"); Klever::SaveStringList(m_t42Callers,"T42Callers"); WriteProfileInt("T42Window","AutosaveLayout",m_bt42AutosaveLayout); WriteProfileInt("Settings","T42MaxCallers",m_maxT42Callers); WriteProfileInt("Settings","T42MaxCallees",m_maxT42Callees); WriteProfileString("Settings","T42CallsLog",m_t42CallsFile); WriteProfileInt("Settings","T42TalkPort",m_T42TalkPort); WriteProfileString("Sounds","T42Bell",m_sndT42Bell); WriteProfileString("Sounds","T42Prompt",m_sndT42Prompt); WriteProfileInt("Sounds","T42PromptLoop",m_bT42PromptLoop); WriteProfileString("Sounds","T42Wake",m_sndT42Wake); Klever::WriteProfileString("Secretary","T42Greeting",m_T42SGreeting); WriteProfileInt("Secretary","T42BytesLimit",m_T42SBytesLimit); WriteProfileInt("Secretary","T42TimeLimit",m_T42STimeLimit.GetTotalSeconds()); WriteProfileInt("Secretary","T42WinLimit",m_T42SWinLimit); WriteProfileInt("Fonts","T42LocalBG",m_crT42LocalBG); WriteProfileInt("Fonts","T42RemoteBG",m_crT42RemoteBG); WriteProfileBinary("Fonts","T42Local",(LPBYTE)&m_fmtT42Local,sizeof(m_fmtT42Local)); WriteProfileBinary("Fonts","T42Remote",(LPBYTE)&m_fmtT42Remote,sizeof(m_fmtT42Remote)); WriteProfileBinary("Fonts","T42System",(LPBYTE)&m_fmtT42System,sizeof(m_fmtT42System)); FlushT42CallsLog(); }
void CWordPadApp::SaveOptions() { WriteProfileInt(szSection, szWordSel, m_bWordSel); WriteProfileInt(szSection, szUnits, GetUnits()); WriteProfileInt(szSection, szMaximized, m_bMaximized); WriteProfileBinary(szSection, szFrameRect, (BYTE*)&m_rectInitialFrame, sizeof(CRect)); WriteProfileBinary(szSection, szPageMargin, (BYTE*)&m_rectPageMargin, sizeof(CRect)); m_optionsText.SaveOptions(szTextSection); m_optionsRTF.SaveOptions(szRTFSection); m_optionsWord.SaveOptions(szWordSection); m_optionsWrite.SaveOptions(szWriteSection); m_optionsIP.SaveOptions(szIPSection); }
BOOL vmsAppSettingsStore::WriteProfileUint64(LPCTSTR pszSection, LPCTSTR pszEntry, UINT64 nValue) { return WriteProfileBinary (pszSection, pszEntry, (LPBYTE)&nValue, sizeof (nValue)); }