Registry.cpp File Reference

Implementation of function to simplify registry access. More...

#include <windows.h>
#include <vector>
#include <map>
#include <sstream>
#include "../Common/UnicodeString.h"
#include "Registry.h"

Namespaces

namespace  hwdet

Functions

bool hwdet::OpenRegistryKey (const HKEY hkey, const String &keyName, HKEY &result, const REGSAM access=KEY_READ)
 Open specified registry key.
bool hwdet::CloseRegistryKey (const HKEY hkey)
 Close registry key.
bool hwdet::EnumerateSubKeys (const HKEY hkey, std::vector< String > &result)
 Build list of all subkeys of specified key.
bool hwdet::EnumerateValues (const HKEY hkey, std::vector< String > &result)
 Build list of all values of specified key.
String hwdet::RegistryValueToString (BYTE *data, DWORD type, DWORD dataLength)
bool hwdet::GetSubKeyValueMap (const HKEY hkey, const String &subKeyName, std::map< String, String > &result)
 Build map containing all values of specified key as strings.
bool hwdet::GetValueAsString (const HKEY hkey, const String &valueName, String &result)
 Get specified value as a string.


Detailed Description

Implementation of function to simplify registry access.

Author:
Branislav Repcek
Date:
25. 4. 2006

Generated on Tue Dec 19 17:43:52 2006 for Detector for Windows by  doxygen 1.4.7