資源簡介
非常好用的C++注冊表操作類,看示例
// 使用示例:
// RegistryKey hklm = Registry.LocalMachine;
// RegistryKey aa = hklm.OpenSubKey("System\\CurrentControlSet\\Services\\Lanmanserver\\parameters", TRUE);
// int bb = aa.GetIntValue("AutoShareServer");
// aa.SetValue("AutoShareServer", 0);
//
代碼片段和文件信息
//?Registry.cpp:?implementation?of?the?Registry?class.
//
//??使用示例:
// RegistryKey?hklm?=?Registry.LocalMachine;
// RegistryKey?aa?=?hklm.OpenSubKey(“System\\CurrentControlSet\\Services\\Lanmanserver\\parameters“?TRUE);
// int?bb?=?aa.GetIntValue(“AutoShareServer“);
// aa.SetValue(“AutoShareServer“?0);
//
//////////////////////////////////////////////////////////////////////
#include?“stdafx.h“
#include?“Registry.h“
#ifdef?_DEBUG
#undef?THIS_FILE
static?char?THIS_FILE[]=__FILE__;
#define?new?DEBUG_NEW
#endif
//#define?THROW_EX_CODE(x)?{;}
#define?THROW_EX_CODE(x)?{throw?x;}
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
namespace?SKit
{
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5932??2010-09-06?14:56??Registry.cpp
?????文件???????2235??2008-05-07?20:50??Registry.h
-----------?---------??----------?-----??----
?????????????????8167????????????????????2
- 上一篇:c語言畫圖源代碼
- 下一篇:C++ Primer第五版的全部代碼
評論
共有 條評論