cleanup, don't pull in <windows.h>
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include "RageLog.h"
|
||||
#include "RageUtil.h"
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
/* Given "HKEY_LOCAL_MACHINE\hardware\foo", return "hardware\foo", and place
|
||||
* the HKEY_LOCAL_MACHINE constant in key. */
|
||||
static bool GetRegKeyType( const RString &sIn, RString &sOut, HKEY &key )
|
||||
|
||||
@@ -1,20 +1,19 @@
|
||||
/* RegistryAccess - Windows registry helpers */
|
||||
|
||||
#ifndef REGISTRY_ACCESS_H
|
||||
#define REGISTRY_ACCESS_H
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
namespace RegistryAccess
|
||||
{
|
||||
bool GetRegValue( const RString &key, const RString &sName, RString &val );
|
||||
bool GetRegValue( const RString &key, const RString &sName, int &val );
|
||||
bool GetRegValue( const RString &key, const RString &sName, bool &val );
|
||||
bool GetRegValue( const RString &sKey, const RString &sName, RString &val );
|
||||
bool GetRegValue( const RString &sKey, const RString &sName, int &val );
|
||||
bool GetRegValue( const RString &sKey, const RString &sName, bool &val );
|
||||
|
||||
bool GetRegSubKeys( const RString &key, vector<RString> &lst, const RString ®ex = ".*", bool bReturnPathToo = true );
|
||||
bool GetRegSubKeys( const RString &sKey, vector<RString> &asList, const RString &sRegex = ".*", bool bReturnPathToo = true );
|
||||
|
||||
bool SetRegValue( const RString &key, const RString &sName, const RString &val );
|
||||
bool SetRegValue( const RString &key, const RString &sName, int val );
|
||||
bool SetRegValue( const RString &key, const RString &sName, bool val );
|
||||
bool SetRegValue( const RString &sKey, const RString &sName, const RString &val );
|
||||
bool SetRegValue( const RString &sKey, const RString &sName, int val );
|
||||
bool SetRegValue( const RString &sKey, const RString &sName, bool val );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user