This structure describes an event. It is used by an application media control device to enable an event for an SpiEnableEvent call. Stream handlers use this same data structure to report events. Most of the system-defined events have a corresponding event control block, which is the same structure with some different field names and uses.
typedef struct _EVCB { ULONG ulType; /* Event type. */ ULONG ulSubType; /* Event subtype. */ ULONG ulFlags; /* Flags. */ HSTREAM hstream; /* Stream handle. */ HID hid; /* Stream handler ID. */ ULONG ulStatus; /* Event status. */ ULONG ulEventParm1; /* I/O parameter. */ ULONG ulEventParm2; /* I/O parameter. */ ULONG ulEventParm3; /* I/O parameter. */ } EVCB; typedef EVCB FAR * PEVCB ;