#ifndef __UtilErr_h
#define __UtilErr_h

#include "resource.h"		// For IDS_ERR_FILE_UNKNOWN.
#include "DynamicServer.h"	// For DsErrorThrowCallback.

extern void FFThrowMiscLastError ();
extern int FFMessageBox (const wchar_t* wcpText,
						const wchar_t* wcpCaption = NULL,
						DWORD dwType = MB_OK);
extern void FFThrowMiscException (DWORD dwMessageId, ...);
extern void FFThrowMiscError (DWORD dwErrorCode, const wchar_t* wcpMessage);
extern void FFSetErrorThrowFunc (DsErrorThrowCallback callback);
extern void FFSetErrorHwnd (HWND hWnd);
extern void FFDebugTrace (const wchar_t* wcpFormat, ...);

// _xZkqqHx_jGkCjCoIiLgAiDeHiDiJiBfLiBeC_xHqqkZx_
#define FFThrowMiscUnknown()	{ DebugBreak(); FFThrowMiscException(IDS_DYSR_ERR_MISC_UNKNOWN, (const wchar_t*)TStrToWStr(__FILE__), __LINE__); }

#endif//__UtilErr_h
