• 大小: 3KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-07
  • 语言: C/C++
  • 标签: Registry  VC  C++  

资源简介

非常好用的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


评论

共有 条评论