Compartilhar via


IRemoteToolDevice::ReceiveFile (Compact 2013)

3/26/2014

When called, this retrieves a file from the device's file system and then creates a copy on the desktop. This simply delegates to ICcConnection::ReceiveFile in the Core Connectivity native API.

Syntax

HRESULT ReceiveFile([in] BSTR bstrDeviceFile, [in] BSTR bstrDesktopFile, [in] DWORD dwDisposition)

Parameters

  • bstrDeviceFile
    The full path of the file to get from the device.
  • bstrDesktopFile
    The full path of the file to get
  • dwDisposition
    Specifies an action to take on files that exist and on those that do not exist.

    For more information, see dwCreationDisposition in the Windows CreateFile function at this Microsoft Web site.

Return Value

ERROR_INVALID_DATA if there is no active connection created by calling IRemoteToolServer::ConnectToDevice.

S_OK if success.

Other error codes may be returned from ICcConnection::ReceiveFile.

See Also

Reference

IRemoteToolDevice
IRemoteToolServer::ConnectToDevice
ICcConnection::ReceiveFile