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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for