IVirtualUI::DownloadFile Method
Sends the specified file to the end-user’s web browser for saving it in the remote machine.
Syntax
HRESULT _stdcall DownloadFile(
[in] BSTR LocalFilename,
[in] BSTR RemoteFilename,
[in] BSTR MimeType
);
Parameters
| Parameter |
Type |
Description |
LocalFilename |
BSTR |
The name of the local file to be transmitted. |
RemoteFilename |
BSTR |
The name of the file as it will appear on the client machine. |
MimeType |
BSTR |
The content-type designation for the file. When populated, the browser will handle the content according to its type. Leave blank to trigger a download prompt. |
Return Value
| Type |
Description |
| HRESULT |
Standard COM return value indicating success or failure. |