mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1871 3b4a5df2-a311-0410-b5c6-a8a6f20db521
76 lines
2.3 KiB
C
76 lines
2.3 KiB
C
//**************************************************************************
|
|
//
|
|
// Filename : RegInst.h
|
|
//
|
|
// Purpose : prototypes for the registry stuff
|
|
//
|
|
// Modification history :
|
|
//
|
|
// 02dec96:HJH - Creation
|
|
//
|
|
//**************************************************************************
|
|
|
|
#ifndef _RegInst_h
|
|
#define _RegInst_h
|
|
|
|
//**************************************************************************
|
|
//
|
|
// Includes
|
|
//
|
|
//**************************************************************************
|
|
|
|
#include <windows.h>
|
|
#include <tchar.h>
|
|
#include <assert.h>
|
|
|
|
#include "types.h"
|
|
|
|
//**************************************************************************
|
|
//
|
|
// Defines
|
|
//
|
|
//**************************************************************************
|
|
|
|
//**************************************************************************
|
|
//
|
|
// Typedefs
|
|
//
|
|
//**************************************************************************
|
|
|
|
//**************************************************************************
|
|
//
|
|
// Function Prototypes
|
|
//
|
|
//**************************************************************************
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// call once per execution of application:
|
|
extern BOOLEAN InitializeRegistryKeys(STR strAppName, STR strRegistryKey);
|
|
|
|
// returns key for HKEY_CURRENT_USER\"Software"\RegistryKey\ProfileName
|
|
// creating it if it doesn't exist
|
|
// responsibility of the caller to call RegCloseKey() on the returned HKEY
|
|
extern HKEY GetAppRegistryKey();
|
|
|
|
// returns key for:
|
|
// HKEY_CURRENT_USER\"Software"\RegistryKey\AppName\lpszSection
|
|
// creating it if it doesn't exist.
|
|
// responsibility of the caller to call RegCloseKey() on the returned HKEY
|
|
extern HKEY GetSectionKey(STR lpszSection);
|
|
|
|
extern UINT GetProfileInteger(STR lpszSection, STR lpszEntry, int nDefault);
|
|
extern BOOLEAN GetProfileChar(STR lpszSection, STR lpszEntry, STR lpszDefault, STR lpszValue);
|
|
extern BOOL GetProfileBinary(STR lpszSection, STR lpszEntry, BYTE** ppData, UINT* pBytes);
|
|
extern BOOL WriteProfileInt(STR lpszSection, STR lpszEntry, int nValue);
|
|
extern BOOL WriteProfileChar(STR lpszSection, STR lpszEntry, STR lpszValue);
|
|
extern BOOL WriteProfileBinary(STR lpszSection, STR lpszEntry, LPBYTE pData, UINT nBytes);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|