Compartilhar via


IPMConnection::FileCopy (Windows CE 5.0)

Send Feedback

This method copies a file to a specified location on a device.

HRESULT FileCopy(BSTR bstrSource,BSTR bstrDest,VARIANT_BOOL bOverWrite,long* pdwTotalSize);

Parameters

  • bstrSource
    [in] Path and name of the source file.
  • bstrDest
    [in] Destination path.
  • bOverWrite
    [in] Overwrite flag. If there is an existing file of the same name at the destination, setting this parameter to 1 overwrites the existing file.
  • pdwTotalSize
    [out] Pointer to the total size of the file.

Return Values

This method has the following return values.

Return value Description
S_OK The call was successfully completed.
E_FAIL Unable to complete the call.
OLE_E_NOCONNECTION There is no connection established.
STG_E_FILENOTFOUND Unable to locate the file.
STG_E_INSUFFICIENTMEMORY Insufficient memory to complete the call.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Connection.h, Cemgr.idl.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.