| 85 | } |
| 86 | |
| 87 | CString Registry::StdRegPathToRealPath(const CString& path) { |
| 88 | CString result(path); |
| 89 | result.Replace(L"HKEY_LOCAL_MACHINE\\", L"\\REGISTRY\\MACHINE"); |
| 90 | result.Replace(L"HKEY_USERS\\", L"\\REGISTRY\\USER\\"); |
| 91 | |
| 92 | return result; |
| 93 | } |
| 94 | |
| 95 | RegistryKey Registry::OpenKey(const CString& path, DWORD access, bool* root) { |
| 96 | if (root) |