--******************************************************************************************************************** -- Created: 30-Mar-2010 17:01:48 by OpenVMS SDL EV3-3 -- Source: 22-FEB-2002 11:01:55 $1$DGA7274:[STARLET_ADA.LIS]EVENTDEF.SDL;1 --******************************************************************************************************************** with SYSTEM; use SYSTEM; with STARLET; use STARLET; with CONDITION_HANDLING; use CONDITION_HANDLING; package EVENTDEF is -- module $EVENTDEF -- EVSB - Event Status Block -- The Event Status Block receives $EVENT service VMS and NT completion status type EVT_EVSB_TYPE is record VMS_STATUS : UNSIGNED_LONGWORD; -- VMS completion status NT_STATUS : UNSIGNED_LONGWORD; -- NT completion status end record; for EVT_EVSB_TYPE use record VMS_STATUS at 0 range 0 .. 31; NT_STATUS at 4 range 0 .. 31; end record; for EVT_EVSB_TYPE'SIZE use 64; EVT_EVSB_TYPE_INIT : constant EVT_EVSB_TYPE := (VMS_STATUS => 0, NT_STATUS => 0); EVSB_K_LENGTH : constant := 8; -- Length of EVSB EVSB_C_LENGTH : constant := 8; -- Length of EVSB -- -- +-------------------------------------------------------------------+ -- | function codes -- +-------------------------------------------------------------------+ -- EVT_FC_REGISTER_EVENT_SOURCE : constant := 1; -- register event source EVT_FC_REPORT_EVENT : constant := 2; -- report event EVT_FC_DEREGISTER_EVENT_SOURCE : constant := 3; -- deregister event source EVT_FC_FUNCTION_CODE_TOO_BIG : constant := 4; -- Always keep as last function code -- -- +-------------------------------------------------------------------+ -- | item codes -- +-------------------------------------------------------------------+ -- EVT_SERVER_NAME : constant := 1; -- PW server name - currently ignored EVT_SOURCE : constant := 2; -- Event source id EVT_HANDLE : constant := 3; -- handle of registered event channel EVT_EVENT_TYPE : constant := 4; -- info, warning or error EVT_EVENT_CATEGORY : constant := 5; -- Event category EVT_EVENT_ID : constant := 6; -- Event ID EVT_USER_SID : constant := 7; -- NT security ID EVT_NUMSTRINGS : constant := 8; -- # counted strings in STRING_ARRAY EVT_DATASIZE : constant := 9; -- # bytes in RAW_DATA EVT_STRING_ARRAY : constant := 10; -- event log string data EVT_RAW_DATA : constant := 11; -- event log non-string data EVT_ITEM_CODE_TOO_BIG : constant := 12; -- Always keep as last item code -- -- max length of SERVER_NAME string is 8 wchars, 32 bytes (4 * 8) -- EVT_MAX_SERVER_NAME_LEN : constant := 32; -- -- Values for EVT$_EVENT_TYPE. NOTE! These values must be kept in sync with -- the corresponding values in Microsoft's winnt.h -- EVT_SUCCESS : constant := 0; -- MS EVENTLOG_SUCCESS EVT_ERROR : constant := 1; -- MS EVENTLOG_ERROR_TYPE EVT_WARNING : constant := 2; -- MS EVENTLOG_WARNING_TYPE EVT_INFO : constant := 4; -- MS EVENTLOG_INFORMATION_TYPE EVT_AUDIT_SUCCESS : constant := 8; -- MS EVENTLOG_AUDIT_SUCCESS EVT_AUDIT_FAILURE : constant := 16; -- MS EVENTLOG_AUDIT_FAILURE end EVENTDEF;