beautypg.com

Log new event – Rockwell Automation 2711P Software Development Kit User Manual User Manual

Page 74

background image

Publication 2711P-UM005A-EN-P - March 2007

74 PanelView Plus CE-Specific Extensions to the WinCE API

Members

nIndex

The record index.

nType

Event Type

LocalTime

Time and Date Stamp

szDescription

A text string that describes the Event.

Log New Event

This function writes a new Event to the Event Log.

void LogNew Event(LPCTSTR szEventDescription, int
nEventType);

Parameters:

szEventDescription

A pointer to a text string that describes the Event.

nEventType

This parameter must be one of the values in Table .

Event Types

Value

Description

EVENT_UNUSED

Event record is empty; i.e. unused.

EVENT_WARNING

Event is a warning condition; e.g. low battery.

EVENT_ERROR

Event is an error condition; CPU Over-temperature.

EVENT_INFO

Event is information only; e.g. Last Boot Reason