cregistry.h
来自「dsp上用c语言实现的aac音频算法的编解码器代码」· C头文件 代码 · 共 65 行
H
65 行
/*CRegistry classCopyright (C) 2002-2004 Antonio ForannaThis program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation. This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details. You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author can be contacted at:ntnfrn_email-temp@yahoo.it*///---------------------------------------------------------------------------#ifndef CRegistryH#define CRegistryH//---------------------------------------------------------------------------#include <windows.h>#include <stdlib.h>#include <string.h>//#include <memory.h>class CRegistry {public: CRegistry(); ~CRegistry(); BOOL Open(HKEY hKey, char *SubKey); BOOL OpenCreate(HKEY hKey, char *SubKey); void Close(); void DeleteVal(char *SubKey); void DeleteKey(char *SubKey); void SetBool(char *keyStr , bool val); void SetByte(char *keyStr , BYTE val); void SetWord(char *keyStr , WORD val); void SetDword(char *keyStr , DWORD val); void SetFloat(char *keyStr , float val); void SetStr(char *keyStr , char *valStr); void SetValN(char *keyStr , BYTE *addr, DWORD size); bool GetSetBool(char *keyStr, bool var); BYTE GetSetByte(char *keyStr, BYTE var); WORD GetSetWord(char *keyStr, WORD var); DWORD GetSetDword(char *keyStr, DWORD var); float GetSetFloat(char *keyStr, float var); char *GetSetStr(char *keyStr, char *String); int GetSetValN(char *keyStr, BYTE *defData, DWORD defSize, BYTE **dest); HKEY regKey; char *path;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?