IPMConnection::CopyPackage (Windows CE 5.0)
This method copies a package to a specified location.
HRESULT CopyPackage(BSTR bstrPackageId,BSTR bstrDestPath,VARIANT_BOOL bOverWrite,long* pdwTotalSize);
Parameters
- bstrPackageId
[in] GUID of the package. - bstrDestPath
[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] Total size of the package.
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