WdfDmaTransactionGetDevice - NtDoc

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

WDFDEVICE WdfDmaTransactionGetDevice(
  [in] WDFDMATRANSACTION DmaTransaction
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfdmatransaction-wdfdmatransactiongetdevice)

WdfDmaTransactionGetDevice function

Description

[Applies to KMDF only]

The WdfDmaTransactionGetDevice method returns a handle to the framework device object that is associated with a specified DMA transaction.

Parameters

DmaTransaction [in]

A handle to a DMA transaction object that the driver obtained from a previous call to WdfDmaTransactionCreate.

Return value

WdfDmaTransactionGetDevice returns a handle to the framework device object that the driver specified when it called WdfDmaTransactionCreate.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

For more information about completing DMA transfers, see Completing a DMA Transfer.

Examples

The following code example obtains a handle to the framework device object that is associated with a specified DMA transaction.

WDFDEVICE device;

device = WdfDmaTransactionGetDevice(DmaTransaction);

See also

WdfDmaTransactionCreate