Bewerken

Delen via


AcxEventAddEventData function (acxevents.h)

The AcxEventAddEventData function adds event data to an ACXEVENT object.

Syntax

void AcxEventAddEventData(
  ACXEVENT     Event,
  ACXEVENTDATA EventData
);

Parameters

Event

The ACXEVENT object (described in Summary of ACX Objects).

EventData

The ACXEVENTDATA ACX object.

Return value

None

Remarks

An ACXEVENTDATA represents the EVENT obj from the client.

An ACXEVENT represents an asynchronous notification available at the driver level. Events can be added to ACXCIRCUITs, ACXSTREAMs, ACXELEMENTs and ACXPINs. Internally they are exposed as KS Events to upper layers. For more information about KS Events, see KS Events.

Example

This sample shows the use of AcxEventAddEventData.

VOID
CodecR_EvtMuteElementChangeEventCallback(
    _In_        ACXOBJECT       Object,
    _In_        ACXEVENT        Event,
    _In_        ACX_EVENT_VERB  Verb,
    _In_opt_    ACXEVENTDATA    EventData,
    _In_opt_    WDFREQUEST      Request
    )
{
...
        AcxEventAddEventData(Event, EventData);
...
}

ACX requirements

Minimum ACX version: 1.0

For more information about ACX versions, see ACX version overview.

Requirements

Requirement Value
Header acxevents.h
IRQL PASSIVE_LEVEL

See also