// acxstreams.h
NTSTATUS AcxStreamInitAssignAcxStreamCallbacks(
PACXSTREAM_INIT StreamInit,
PACX_STREAM_CALLBACKS StreamCallbacks
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxStreamInitAssignAcxStreamCallbacks function sets the callbacks using an ACX_STREAM_CALLBACKS structure and an ACXSTREAM_INIT object. For more information about ACX Objects, see ACX - Summary of ACX Objects.
StreamInitAddress of a ACXSTREAM_INIT object used to define the stream initialization parameters.
StreamCallbacksAn ACX_STREAM_CALLBACKS structure that is used to define the following callbacks.
Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.
Example usage is shown below.
ACX_STREAM_CALLBACKS streamCallbacks;
//
// Init streaming callbacks.
//
ACX_STREAM_CALLBACKS_INIT(&streamCallbacks);
streamCallbacks.EvtAcxStreamPrepareHardware = Dsp_EvtStreamPrepareHardware;
streamCallbacks.EvtAcxStreamReleaseHardware = Dsp_EvtStreamReleaseHardware;
streamCallbacks.EvtAcxStreamRun = Dsp_EvtStreamRun;
streamCallbacks.EvtAcxStreamPause = Dsp_EvtStreamPause;
status = AcxStreamInitAssignAcxStreamCallbacks(StreamInit, &streamCallbacks);
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.