///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Winnov L.P., 1997.  All rights reserved
// registry.cpp: Registry Class implementation
///////////////////////////////////////////////////////////////////////////////

#ifndef _REGISTRY_INCLUDED
#define _REGISTRY_INCLUDED

#include <tchar.h>

typedef struct tag_REGISTRY {
    PVOID		m_pLocalMachine;
    HKEY		m_hKeyPrivate;
    HKEY		m_hKeyBoard;
} REGISTRY, *PREGISTRY, FAR * LPREGISTRY;
typedef PTCHAR	REGISTRY_NAME;

#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */

void  registryConstructor (PVOID pRegistry);
void  registryDestructor (PVOID pRegistry);
void  registryWrite (PVOID pRegistry, HKEY hKey, REGISTRY_NAME tzName, DWORD dwVal);
DWORD registryRead (PVOID pRegistry, HKEY hKey, REGISTRY_NAME tzName, DWORD dwDefault);
HKEY  registryOpenKey (PVOID pRegistry, REGISTRY_NAME tzName);
void  registryCloseKey (PVOID pRegistry, HKEY hKey);
DWORD registryOpen (PVOID pRegistry, UINT nBoard);
DWORD registryClose (PVOID pRegistry);

#ifdef __cplusplus
}
#endif

#endif	// ndef _REGISTRY_INCLUDED
