www.pudn.com > unixtonxunchengxu.rar > UnionLog.h
#ifndef _UnionLogMDL #define _UnionLogMDL #include#include #include #define gUnionErrMsgIssureID "00000000" #define gUnionErrMsgIssureName "Union Error Message Issure" // The two following functions must be defined outside the UnionLogMDL. int UnionGetNameOfLogFile(char *NameOfLogFile); long UnionGetSizeOfLogFile(); // ************************************************************* // Anytime before calling functions of the UnionLogMDL the first time, // please call this function to connect to the UnionLogMDL. int UnionConnectLogMDL(); // Anytime when not calling functions of the UnionLogMDL any more, // please call this function to disconnect to the UnionLogMDL. int UnionDisconnectLogMDL(); int UnionGetSystemTime(char *strtime); int UnionGetSystemDate(char *strdate); int UnionGetSystemYear(char *stryear); int UnionGetFullSystemDate(char *strdate); int UnionGetSystemDateTime(char *datetime); int UnionGetFullSystemDateTime(char *datetime); FILE *UnionOpenLogFile(); int UnionCloseLogFile(FILE *UnionLogfile); void UnionSystemErrLog(char *,...); void UnionUserErrLog(char *,...); void UnionSuccessLog(char *,...); void UnionLog(char *,...); void UnionNoTimeLog(char *,...); void WriteMemory(FILE *fp,unsigned char *pBuffer,int iBufLen); void UnionMemErrLog(char *pMessage,unsigned char *pBuffer,int iBufLen); void UnionMemLog(char *pMessage,unsigned char *pBuffer,int iBufLen); void UnionPrintf(char *,...); void UnionNullLog(char *,...); #endif