Initial commit

This commit is contained in:
Cesar Gimenes
2021-09-18 14:10:47 -03:00
parent 46f2228e15
commit e2607a94c0
131 changed files with 5312 additions and 0 deletions

28
nkosrc4/Neko98/NekoSettings.h Executable file
View File

@@ -0,0 +1,28 @@
/************************************
Neko's configuration header file
*************************************/
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "NekoCommon.h"
class CNekoSettings {
public:
CNekoSettings( LPCSTR key, BOOL fCreate = TRUE );
~CNekoSettings();
BOOL IsOpen();
BOOL GetString( LPCSTR keyname, LPSTR result, ULONG size );
BOOL GetInt( LPCSTR keyname, DWORD * result );
BOOL GetBool( LPCSTR keyname, BOOL * result );
BOOL SetString( LPCSTR keyname, LPSTR value );
BOOL SetInt( LPCSTR keyname, DWORD value );
BOOL SetBool( LPCSTR keyname, BOOL value );
private:
HKEY m_hKey;
};