AcxStreamInitAssignAcxStreamCallbacks - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// acxstreams.h

NTSTATUS AcxStreamInitAssignAcxStreamCallbacks(
  PACXSTREAM_INIT       StreamInit,
  PACX_STREAM_CALLBACKS StreamCallbacks
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-acxstreams-acxstreaminitassignacxstreamcallbacks)

Description

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.

Parameters

StreamInit

Address of a ACXSTREAM_INIT object used to define the stream initialization parameters.

StreamCallbacks

An ACX_STREAM_CALLBACKS structure that is used to define the following callbacks.

Return value

Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.

Remarks

Example

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);

ACX requirements

Minimum ACX version: 1.0

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

See also