| 77 | } |
| 78 | |
| 79 | CString RegExportImport::BytesToString(BYTE const* data, DWORD count) { |
| 80 | CString text, chars; |
| 81 | for (DWORD i = 0; i < count; i++) { |
| 82 | chars.Format(L"%02X", data[i]); |
| 83 | if (i % 32 == 31 && i < count - 1) |
| 84 | text += L"\\\n"; |
| 85 | text += chars; |
| 86 | } |
| 87 | return text.Left(text.GetLength() - 1); |
| 88 | } |
| 89 | |
| 90 | bool RegExportImport::WriteString(HANDLE hFile, CString const& text) { |
| 91 | DWORD bytes; |