Windows2003-3790/inetcore/connectionwizard/icwrmind/mcreg.h
2020-09-30 16:53:55 +02:00

28 lines
636 B
C++

#pragma once
#define STRICT
#include <windows.h>
#include <crtdbg.h>
class CMcRegistry
{
public:
CMcRegistry();
~CMcRegistry();
public:
bool OpenKey(HKEY hkeyStart, LPCTSTR strKey, REGSAM sam = KEY_READ | KEY_WRITE);
bool CreateKey(HKEY hkeyStart, LPCTSTR strKey);
bool CloseKey();
bool GetValue(LPCTSTR strValue, LPTSTR strData, ULONG nBufferSize);
bool GetValue(LPCTSTR strValue, DWORD& rdw);
bool SetValue(LPCTSTR strValue, LPCTSTR strData);
bool SetValue(LPCTSTR strValue, DWORD rdw);
private:
HKEY m_hkey;
};
//---------------------------------------------------------------------------