registry.h
来自「著名的任天堂FC游戏机模拟器VirtuaNes 085版的源码!」· C头文件 代码 · 共 38 行
H
38 行
//
// 儗僕僗僩儕僒億乕僩僋儔僗
//
#ifndef __CREGISTRY_INCLUDED__
#define __CREGISTRY_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
#include <TCHAR.h>
#include <string>
using namespace std;
class CRegistry
{
public:
static void SetRegistryKey( LPCSTR lpszKey );
static UINT GetProfileInt ( LPCSTR lpszSection, LPCSTR lpszEntry, INT nDefault );
static BOOL GetProfileString( LPCSTR lpszSection, LPCSTR lpszEntry, LPVOID lpData, UINT nBytes );
static BOOL GetProfileBinary( LPCSTR lpszSection, LPCSTR lpszEntry, LPVOID lpData, UINT nBytes );
static BOOL WriteProfileInt( LPCSTR lpszSection, LPCSTR lpszEntry, INT nValue );
static BOOL WriteProfileString( LPCSTR lpszSection, LPCSTR lpszEntry, LPCSTR lpszValue );
static BOOL WriteProfileBinary( LPCSTR lpszSection, LPCSTR lpszEntry, LPVOID pData, UINT nBytes );
protected:
static CHAR m_szRegistryKey[MAX_PATH];
static HKEY GetRegistryKey();
static HKEY GetSectionKey( LPCTSTR lpszSection );
private:
};
#endif // !__CREGISTRY_INCLUDED__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?