Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

perfmsg.h File Reference

Go to the source code of this file.

Defines

#define APP_NAME   "perfuser"
#define LOG_NONE   0
#define LOG_USER   1
#define LOG_DEBUG   2
#define LOG_VERBOSE   3
#define MESSAGE_LEVEL_DEFAULT   LOG_USER
#define REPORT_SUCCESS(i, l)
#define REPORT_INFORMATION(i, l)
#define REPORT_WARNING(i, l)
#define REPORT_ERROR(i, l)
#define REPORT_INFORMATION_DATA(i, l, d, s)
#define REPORT_WARNING_DATA(i, l, d, s)
#define REPORT_ERROR_DATA(i, l, d, s)

Variables

HANDLE hEventLog
DWORD dwLogUsers
DWORD MESSAGE_LEVEL


Define Documentation

#define APP_NAME   "perfuser"
 

Definition at line 22 of file perfmsg.h.

Referenced by MonOpenEventLog().

#define LOG_DEBUG   2
 

Definition at line 41 of file perfmsg.h.

Referenced by MonCloseEventLog(), and MonOpenEventLog().

#define LOG_NONE   0
 

Definition at line 39 of file perfmsg.h.

#define LOG_USER   1
 

Definition at line 40 of file perfmsg.h.

Referenced by FillInstances(), GlobalCollect(), and OpenUserPerformanceData().

#define LOG_VERBOSE   3
 

Definition at line 42 of file perfmsg.h.

#define MESSAGE_LEVEL_DEFAULT   LOG_USER
 

Definition at line 43 of file perfmsg.h.

Referenced by MonOpenEventLog().

#define REPORT_ERROR i,
 ) 
 

Value:

(MESSAGE_LEVEL >= l ? ReportEvent (hEventLog, EVENTLOG_ERROR_TYPE, \ 0, i, (PSID)NULL, 0, 0, NULL, (PVOID)NULL) : FALSE)

Definition at line 78 of file perfmsg.h.

Referenced by GlobalCollect().

#define REPORT_ERROR_DATA i,
l,
d,
 ) 
 

Value:

(MESSAGE_LEVEL >= l ? ReportEvent (hEventLog, EVENTLOG_ERROR_TYPE, \ 0, i, (PSID)NULL, 0, s, NULL, (PVOID)(d)) : FALSE)

Definition at line 87 of file perfmsg.h.

Referenced by FillInstances(), and OpenUserPerformanceData().

#define REPORT_INFORMATION i,
 ) 
 

Value:

(MESSAGE_LEVEL >= l ? ReportEvent (hEventLog, EVENTLOG_INFORMATION_TYPE, \ 0, i, (PSID)NULL, 0, 0, NULL, (PVOID)NULL) : FALSE)

Definition at line 72 of file perfmsg.h.

Referenced by MonCloseEventLog(), and MonOpenEventLog().

#define REPORT_INFORMATION_DATA i,
l,
d,
 ) 
 

Value:

(MESSAGE_LEVEL >= l ? ReportEvent (hEventLog, EVENTLOG_INFORMATION_TYPE, \ 0, i, (PSID)NULL, 0, s, NULL, (PVOID)(d)) : FALSE)

Definition at line 81 of file perfmsg.h.

#define REPORT_SUCCESS i,
 ) 
 

Value:

(MESSAGE_LEVEL >= l ? ReportEvent (hEventLog, EVENTLOG_INFORMATION_TYPE, \ 0, i, (PSID)NULL, 0, 0, NULL, (PVOID)NULL) : FALSE)

Definition at line 69 of file perfmsg.h.

#define REPORT_WARNING i,
 ) 
 

Value:

(MESSAGE_LEVEL >= l ? ReportEvent (hEventLog, EVENTLOG_WARNING_TYPE, \ 0, i, (PSID)NULL, 0, 0, NULL, (PVOID)NULL) : FALSE)

Definition at line 75 of file perfmsg.h.

#define REPORT_WARNING_DATA i,
l,
d,
 ) 
 

Value:

(MESSAGE_LEVEL >= l ? ReportEvent (hEventLog, EVENTLOG_WARNING_TYPE, \ 0, i, (PSID)NULL, 0, s, NULL, (PVOID)(d)) : FALSE)

Definition at line 84 of file perfmsg.h.


Variable Documentation

DWORD dwLogUsers
 

Definition at line 94 of file perfmsg.h.

Referenced by MonCloseEventLog(), and MonOpenEventLog().

HANDLE hEventLog
 

Definition at line 92 of file perfmsg.h.

Referenced by MonCloseEventLog(), MonOpenEventLog(), and OpenUserPerformanceData().

DWORD MESSAGE_LEVEL
 

Definition at line 96 of file perfmsg.h.

Referenced by MonOpenEventLog().


Generated on Sat May 15 19:45:02 2004 for test by doxygen 1.3.7