Bewerken

Delen via


StreamClassGetDmaBuffer function (strmini.h)

The StreamClassGetDmaBuffer routine returns a pointer to the DMA buffer that the class driver allocates for the minidriver.

Syntax

PVOID STREAMAPI StreamClassGetDmaBuffer(
  [in] PVOID HwDeviceExtension
);

Parameters

[in] HwDeviceExtension

Pointer to the minidriver's device extension. The minidriver specifies the size of this buffer in the HW_INITIALIZATION_DATA structure it passes when it registers itself via StreamClassRegisterMinidriver. The class driver then passes pointers to the buffer in the HwDeviceExtension member of the HW_STREAM_REQUEST_BLOCK, HW_STREAM_OBJECT, HW_TIME_CONTEXT, and PORT_CONFIGURATION_INFORMATION structures it passes to the minidriver.

Return value

StreamClassGetDmaBuffer returns a pointer to the DMA buffer.

Remarks

The minidriver specifies the size of the DMA buffer in the DmaBufferSize member of its HW_INITIALIZATION_DATA structure.

Requirements

Requirement Value
Target Platform Desktop
Header strmini.h (include Strmini.h)
Library Stream.lib

See also

HW_INITIALIZATION_DATA