////////////////////////////////////////////////////////////////////////////////
// registry.h
//
// Copyright (C) 1987-1997 By Microsoft Corp. All rights reserved.
// Copyright (C) 1997 Metawise Computing, Inc. All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _REGISTRY_H_
#define _REGISTRY_H_
#include <winreg.h>
#include "cstring.h"
#define REG_OPTION_NONE0x00000000
#define REG_OPTION_CREATE0x00000001
#define REG_OPTION_RESET0x00000002
extern long RegReadValueString// return ERROR_FILE_NOT_FOUND if subkey does not exist
(
IN HKEY hKey,
IN LPCTSTR lpszSubKey,
IN int nCount,// #elems in the following arrays
IN LPCTSTR ppszNames[],// array of value names whose values are sought
OUT CString pstrValues[],// return values
OUT long pbStatus[]// return status of each value returned (TRUE=>OK)
);
extern long RegWriteValueString
(
IN HKEY hKey,
IN LPCTSTR lpszSubKey,
IN int nCount,// #elems in the following arrays
IN LPCTSTR ppszNames[],// array of value names whose values are to be written
IN LPCTSTR ppszValues[],// values to be written to registry
IN DWORD dwOptions// REG_OPTION_XXX
);
#endif // _REGISTRY_H_