| 108 | } |
| 109 | |
| 110 | bool IniFile::WriteBinary(PCWSTR section, PCWSTR name, void* data, unsigned size) { |
| 111 | WriteInt(section, name + CString(L"_size"), size); |
| 112 | return ::WritePrivateProfileStruct(section, name, data, size, _path); |
| 113 | } |
| 114 | |
| 115 | bool IniFile::ReadFont(PCWSTR section, PCWSTR name, LOGFONT& font) { |
| 116 | return ::GetPrivateProfileStruct(section, name, &font, sizeof(font), _path); |