Share via


DMAGetStatus (Compact 2013)

3/26/2014

This function gets the current status of an active or queued DMA transfer.

Syntax

BOOL DMAGetStatus (
  DMA_TRANSFER_HANDLE hDmaTransferHandle,
  PDWORD lpCompletedLength,
  PDWORD lpCompletionCode
);

Parameters

  • lpCompletedLength
    [out] Pointer to the number of bytes transferred. If the pointer is NULL, the number of bytes transferred is not reported.
  • lpCompletionCode
    [out] Pointer to a value containing the completion code. Possible completion codes are Pending, In progress, Completed with success, Completed with error, and canceled.

Return Value

Returns TRUE if hDmaTransferHandle points to a valid DMA Transfer. Returns FALSE if hDmaTransferHandle does not point to a valid DMA Transfer.

Requirements

Header

oaldma.h

Library

CEDDK.lib

See Also

Reference

Ceddk.dll DMA Functions
Ceddk.dll DMA Structures