// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows 95 Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <afxtempl.h>
#include <afxmt.h>
#include <afxcview.h>

inline LONG RegOpenKeyEx(HKEY BaseKey, LPCSTR Path, HKEY *ResultKey)
{ return ::RegOpenKeyEx(BaseKey, Path, 0,	KEY_ALL_ACCESS, ResultKey); }

inline LONG RegGetDWord(HKEY Key, LPCSTR ValueName, DWORD *Value)
{ 
	DWORD Type = REG_DWORD, Size = sizeof(DWORD);

	return ::RegQueryValueEx(Key, ValueName, 0, &Type, (LPBYTE)Value, &Size);
}
