Compartilhar via


IRemoteToolDevice::DeleteFile (Compact 2013)

3/26/2014

Deletes a file from the file system on the device. This simply delegates to ICcConnection::RemoveFile in the Core Connectivity native API.

Syntax

HRESULT DeleteFile([in] BSTR bstrDeviceFile)

Parameters

  • bstrDeviceFile
    The full path of the file to delete from the target device.

Return Value

ERROR_FILE_NOT_FOUND if the path indicated by bstrDeviceFile does not exist.

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::RemoveFile.

See Also

Reference

IRemoteToolDevice
IRemoteToolServer::ConnectToDevice
ICcConnection::RemoveFile