📄 regedit.h
字号:
/*
Copyright 2006 - 2008
ZhangLuduo <zhangluduo@msn.com>
All Rights Reserved.
注册表操作封装类
作者 - 张鲁夺(zhangluduo)
MSN - zhangluduo@msn.com
QQ群 - 34064264
为所有爱我的人和我爱的人努力!
*/
#ifndef _REGEDIT_H
#define _REGEDIT_H
#pragma warning(disable:4786)
#include <string>
#include <vector>
using namespace std;
typedef string ValueBuf;
class Regedit
{
public:
Regedit();
virtual ~Regedit();
private:
HKEY m_hKey;
private:
bool Open(HKEY RootItem, const char* SubItem = "", bool bCreate = true);
void Close();
public:
/** About value operation
*/
bool SetValue ( /* in */ HKEY RootItem,
/* in */ const char* SubItem,
/* in */ unsigned long ValueType,
/* in */ const char* KeyName,
/* in */ const unsigned char* Data,
/* in */ unsigned long DataLen);
ValueBuf ReadValue( /* in */ HKEY RootItem,
/* in */ const char* SubItem,
/* in */ const char* KeyName,
/* out */ unsigned long* DataType,
/* out */ unsigned long* DataLen);
/** About key operation
*/
bool DeleteKey (/* in */ HKEY RootItem, /* in */ const char* SubItem, /* in */ const char* KeyName);
bool DeleteKey (/* in */ HKEY RootItem, /* in */ const char* SubItem);
vector<string> EnumKey (/* in */ HKEY RootItem, /* in */ const char* SubItem);
/** About item operation
*/
bool DeleteItem(/* in */ HKEY RootItem, /* in */ const char* SubItem);
//void test();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -