7 #define WINDOWS_SUCCESS ERROR_SUCCESS
8 #define WINDOWS_ERROR_FILE_NOT_FOUND ERROR_FILE_NOT_FOUND
9 #define WINDOWS_HKEY_CLASSES_ROOT HKEY_CLASSES_ROOT
10 #define WINDOWS_HKEY_CURRENT_CONFIG HKEY_CURRENT_CONFIG
11 #define WINDOWS_HKEY_CURRENT_USER HKEY_CURRENT_USER
12 #define WINDOWS_HKEY_LOCAL_MACHINE HKEY_LOCAL_MACHINE
13 #define WINDOWS_HKEY_USERS HKEY_USERS
15LONG Windows_OpenRegistry(HKEY root, std::string keyName, HKEY &key);
16LONG Windows_CloseRegistry(HKEY key);
17LONG Windows_GetRegistryString(HKEY hKey,
const std::string &strValueName, std::string &strValue,
const std::string &strDefaultValue);
18LONG Windows_SetRegistryString(HKEY hKey,
const std::string &strValueName,
const std::string &strValue);
19std::string Windows_GetErrorString(LONG errorCode);