次の方法で共有


SDPerformSafeCopy (Windows CE 5.0)

Send Feedback

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

BOOLEAN SDPerformSafeCopy(PVOIDpDestination,
  PVOIDpSource, 
  ULONGLength);

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

OS Versions: Windows CE 5.0 and later.
Header: Sdcardddk.h.
Link Library: Sdcardlib.lib.

See Also

Secure Digital Card Driver Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.