/////////////////////////////////////////////////////////////////////////////////////////////// // // ¼³Á¤ ÆÄÀÏ ÇÔ¼ö // /////////////////////////////////////////////////////////////////////////////////////////////// #ifndef _RYL_SERVER_SETUP_INIFunc #define _RYL_SERVER_SETUP_INIFunc #include #include #include inline const TCHAR* BOOLToString(BOOL bValue) { return bValue ? _T("1") : _T("0"); } bool WriteStringToReg(const TCHAR *FileName_In, const TCHAR *Section_In, const TCHAR *KeyName_In, const TCHAR *Value_In); bool ReadStringFromReg(const TCHAR *FileName_In, const TCHAR *Section_In, const TCHAR *KeyName_In, TCHAR *Value_Out, int nMaxBuffer); bool ReadStringFromReg(const TCHAR *FileName_In, const TCHAR *Section_In, const TCHAR *KeyName_In, CString& Value_Out, int nMaxBuffer = 512); bool WriteStructToReg(const TCHAR *FileName_In, const TCHAR *Section_In, const TCHAR *KeyName_In, void *Value_In, int Size_in); bool ReadStructFromReg(const TCHAR *FileName_In, const TCHAR *Section_In, const TCHAR *KeyName_In, void *Value_Out, int Size_in); #endif