Share via


SDPerformSafeCopy (Compact 2013)

3/26/2014

This function performs a safe copy of a source buffer to a destination buffer.

Syntax

BOOLEAN SDPerformSafeCopy(
  PVOID pDestination,
  PVOID pSource, 
  ULONG Length
);

Parameters

  • pDestination
    [out] Destination buffer to copy to.
  • pSource
    [in] Source buffer to copy.
  • Length
    [in] The amount of data to copy, in bytes.

Returns Values

Returns TRUE if the copy was successful. Otherwise, returns FALSE.

Remarks

This function performs a buffer copy in a try-except block to protect the caller from access violations. You can check the return value to determine whether or not an exception occurred.

Requirements

Header

sdcardddk.h

Library

sdcardlib.lib

See Also

Reference

Secure Digital (SD) Card Driver Functions