次の方法で共有


IRemoteToolDevice::SendFile (Compact 2013)

3/26/2014

Puts a file into the device's file system. This simply delegates to ICcConnection::SendFile in the Core Connectivity native API.

Syntax

HRESULT SendFile([in] BSTR bstrDesktopFile, [in] BSTR bstrDeviceFile, [in] DWORD dwDisposition, [in] FILECUSTOMACTION customAction)

Parameters

  • bstrDeviceFile
    The full path of the file to get from the device.
  • bstrDesktopFile
    The full path of the file to get from the desktop.
  • dwDisposition
    A custom action to perform on files that exist, or 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::SendFile.

See Also

Reference

IRemoteToolDevice
IRemoteToolServer::ConnectToDevice
ICcConnection::SendFile
FILECUSTOMACTION (Remote Tools Server)