Share via


SDPerformSafeCopy (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

Secure Digital Card Driver Functions