/********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:29:50 by OpenVMS SDL EV3-3 */ /* Source: 30-MAR-2010 17:29:21 $1$DGA7274:[STARLET_H.SRC]STARDEFAE.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $EVENTDEF ***/ #ifndef __EVENTDEF_LOADED #define __EVENTDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif #ifndef __EVENTDEF #define __EVENTDEF /* EVSB - Event Status Block */ /* The Event Status Block receives $EVENT service VMS and NT completion status */ #ifdef __NEW_STARLET typedef struct _evsb { unsigned int evt$l_vms_status; /* VMS completion status */ unsigned int evt$l_nt_status; /* NT completion status */ } EVSB; #else /* __OLD_STARLET */ typedef struct _evsb { unsigned int evt$l_vms_status; /* VMS completion status */ unsigned int evt$l_nt_status; /* NT completion status */ } evsb; #endif /* #ifdef __NEW_STARLET */ #define EVSB$K_LENGTH 8 /* Length of EVSB */ #define EVSB$C_LENGTH 8 /* Length of EVSB */ #if defined (__ALPHA) || defined (__ia64) # ifdef __INITIAL_POINTER_SIZE # pragma __required_pointer_size __save /* Save current pointer size */ # pragma __required_pointer_size 64 /* Pointers are 64-bits */ typedef struct _evsb * EVSB_PQ; /* 64-bit ptr->EVSB */ typedef struct _evsb ** EVSB_PPQ; /* 64-bit ptr->ptr->EVSB */ # pragma __required_pointer_size __restore /* Return to prev pointer size */ # else typedef unsigned __int64 EVSB_PQ; /* Same size as 64-bit ptr->EVSB */ typedef unsigned __int64 EVSB_PPQ; /* Same size as 64-bit ptr->ptr->EVSB*/ # endif #endif /* */ /* +-------------------------------------------------------------------+ */ /* | function codes */ /* +-------------------------------------------------------------------+ */ /* */ #define EVT$FC_REGISTER_EVENT_SOURCE 1 /* register event source */ #define EVT$FC_REPORT_EVENT 2 /* report event */ #define EVT$FC_DEREGISTER_EVENT_SOURCE 3 /* deregister event source */ #define EVT$FC_FUNCTION_CODE_TOO_BIG 4 /* Always keep as last function code */ /* */ /* +-------------------------------------------------------------------+ */ /* | item codes */ /* +-------------------------------------------------------------------+ */ /* */ #define EVT$_SERVER_NAME 1 /* PW server name - currently ignored */ #define EVT$_SOURCE 2 /* Event source id */ #define EVT$_HANDLE 3 /* handle of registered event channel */ #define EVT$_EVENT_TYPE 4 /* info, warning or error */ #define EVT$_EVENT_CATEGORY 5 /* Event category */ #define EVT$_EVENT_ID 6 /* Event ID */ #define EVT$_USER_SID 7 /* NT security ID */ #define EVT$_NUMSTRINGS 8 /* # counted strings in STRING_ARRAY */ #define EVT$_DATASIZE 9 /* # bytes in RAW_DATA */ #define EVT$_STRING_ARRAY 10 /* event log string data */ #define EVT$_RAW_DATA 11 /* event log non-string data */ #define EVT$_ITEM_CODE_TOO_BIG 12 /* Always keep as last item code */ /* */ /* max length of SERVER_NAME string is 8 wchars, 32 bytes (4 * 8) */ /* */ #define EVT$_MAX_SERVER_NAME_LEN 32 /* */ /* Values for EVT$_EVENT_TYPE. NOTE! These values must be kept in sync with */ /* the corresponding values in Microsoft's winnt.h */ /* */ #define EVT$_SUCCESS 0 /* MS EVENTLOG_SUCCESS */ #define EVT$_ERROR 1 /* MS EVENTLOG_ERROR_TYPE */ #define EVT$_WARNING 2 /* MS EVENTLOG_WARNING_TYPE */ #define EVT$_INFO 4 /* MS EVENTLOG_INFORMATION_TYPE */ #define EVT$_AUDIT_SUCCESS 8 /* MS EVENTLOG_AUDIT_SUCCESS */ #define EVT$_AUDIT_FAILURE 16 /* MS EVENTLOG_AUDIT_FAILURE */ #endif /* __EVENTDEF */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __EVENTDEF_LOADED */