#pragma once

#define REGISTRY_PATH					"Software\\GSC Game World\\STALKER-COP\\"
#define REGISTRY_VALUE_USERNAME			"InstallUserName"

bool	ReadRegistry_StrValue	(LPCSTR rKeyName, char* value );
void	WriteRegistry_StrValue	(LPCSTR rKeyName, const char* value );

u32	const	ReadRegistry_BinaryValue	(LPCSTR rKeyName, u8 * buffer_dest, u32 const buffer_size);
void		WriteRegistry_BinaryValue	(LPCSTR rKeyName, u8 const * buffer_src, u32 const buffer_size);

void	ReadRegistry_DWValue	(LPCSTR rKeyName, DWORD& value );
void	WriteRegistry_DWValue	(LPCSTR rKeyName, const DWORD& value );