cleanup, don't pull in <windows.h>

This commit is contained in:
Glenn Maynard
2005-12-20 20:43:29 +00:00
parent 8822ce2e86
commit c40dedc21f
2 changed files with 10 additions and 9 deletions
@@ -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 &regex = ".*", 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