System event log, Event data structure – Rockwell Automation 2711P Software Development Kit User Manual User Manual
Page 73

Publication 2711P-UM005A-EN-P - March 2007
PanelView Plus CE-Specific Extensions to the WinCE API 73
• [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Keypad\Params\Sing
leKeyMode]
Enabled REG_DWORD which is 1 for enabled, 0 for disabled
AbortEnabled REG_DWORD which is 1 for enabled, 0 for
disabled
• [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Keypad\Params\Hol
doffMode]
Enabled REG_DWORD which is 1 for enabled, 0 for disabled
HoldoffTime REG_DWORD of time in ms. for key hold-off
System Event Log
The PanelView Plus CE platform provides a System Event Log wherein
applications can record system Events that are viewable in the
Hardware Monitor Properties applet in Control Panel. An Event can be
any condition that may be of interest to the user. In the PanelView
Plus CE, the Event log is implemented as the file
\storage card\Event.Log and as such is supported by all the standard
file amenities. It is fixed in size by EVENT_LOG_MAX_RECORDS and
holds at least 32 of the most recently logged Events. The Event Log
object wraps the Event Log such that applications need not be
concerned about creating, opening or closing the file.
Event Data Structure
This structure describes the System Event Record.
typedef struct Event_record {
UINT nIndex;
UINT nType;
SYSTEMTIME LocalTime;
TCHAR szDescription[MAX_DESCRIPTION];
} EVENT;