www.pudn.com > PEMonitor_0.10_src.zip > Misc.h
#ifndef __MISC_H__
#define __MISC_H__
#define MY_PROCESS_ERROR(Condition) if (!(Condition)) goto Exit0;
#define MY_PROCESS_ERROR_WITH_MSG1(Condition, ErrMsg1) \
if (!(Condition))\
{\
printf("%s", (ErrMsg1));\
goto Exit0;\
}
typedef enum tagENUM_ERRMSG
{
ERR_OPEN_FILE,
ERR_NOT_A_PE_FILE,
ERR_MALLOC_MEMORY,
ERR_OPEN_LOG_FILE,
} ENUM_ERRMSG;
extern long g_lFileSize;
extern char *g_FileContents;
extern unsigned long g_ulImageBase;
extern const char *ErrMsg[];
#endif // __MISC_H__