IDmaChannel::CopyFrom method

The CopyFrom method copies sample data from the DMA channel's common buffer to the specified destination buffer.

Syntax


void CopyFrom(
  [in, out]  PVOID Destination,
  [in]       PVOID Source,
  [in]       ULONG ByteCount
);

Parameters

Destination [in, out]

Pointer to the destination buffer

Source [in]

Pointer to the source buffer, which is located in the DMA channel's common buffer.

ByteCount [in]

Specifies the number of bytes to be copied.

Return value

None

Remarks

The Source and Destination pointers are both kernel-mode virtual addresses. The IDmaChannel::SystemAddress call returns the virtual address of a DMA channel's common buffer.

The Source parameter points to the beginning of the source buffer, which occupies ByteCount contiguous bytes in the DMA channel's common buffer.

Requirements

Header

Portcls.h (include Portcls.h)

IRQL

Any level

See also

IDmaChannel::SystemAddress

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft