VAPOR3 3.9.4
windowsUtils.h
Go to the documentation of this file.
1#ifndef WINDOWS_UTILS_H
2#define WINDOWS_UTILS_H
3#ifdef WIN32
4
5 #include <Windows.h>
6
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
14
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);
20
21#endif
22#endif