ailogix_logo
product
downloads
support
affiliation
corporate
CUXLDEN

Click the links below to download our products.

Quick Download CUXLDEN For Client

Quick Download CUXLDEN For Lite Server


If you would like to contact with us, click and go through this link here.

» Contact Us

 
 

CUXLDEN


ISession::Download

Download the specified File in current session.

HRESULT Download(
BSTR bstrFileHash,
BSTR bstrFileName,
ULONGLONG ullFileSize,
BSTR bstrServer,
USHORT usPort,
VARIANT* pvarOption
);



Parameters

bstrFileHash
[in] File Hash to download

bstrFileName
[in]  File Name to download

ullFileSize
[in] File Size
 
bstrServer
[in] Server IP Address

usPort
[in] Server TCP Port

pvarOption
[in, optional] The Pointer to set options.
This parameter can be a combination of the following options, plus the options indicated in the Remarks section. Also, Default value is CUXLDEN_FILE_ATTRIBUTE_NORMAL

 

Return Values

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

S_OK

Method completed successfully.

Remarks

If you use CUXLDEN_FILE_ATTRIBUTE_NORMAL, the default download window should be displayed for downloading.

Option Constant
Value
CUXLDEN_FILE_ATTRIBUTE_NORMAL
0x00000000
CUXLDEN_FILE_ATTRIBUTE_HIDEUI
0x00000001
CUXLDEN_FILE_ATTRIBUTE_HIDDEN
0x00000002
CUXLDEN_FILE_ATTRIBUTE_SEQUENCE
0x00000004
CUXLDEN_FILE_ATTRIBUTE_TEMPORARY
0x00000008
CUXLDEN_FILE_ATTRIBUTE_RUN
0x00000010

Option Style
Description
CUXLDEN_FILE_ATTRIBUTE_NORMAL  Default Value.
CUXLDEN_FILE_ATTRIBUTE_HIDEUI Turn off default download window
CUXLDEN_FILE_ATTRIBUTE_HIDDEN The target download file is hidden style on the file system.
CUXLDEN_FILE_ATTRIBUTE_SEQUENCE The target download file should be saved by sequential operation.
CUXLDEN_FILE_ATTRIBUTE_TEMPORARY The target download file is being used for temporary storage. File systems avoid writing data back to mass storage if sufficient cache memory is available, because an application deletes a temporary file after a handle is closed. In that case, the system can entirely avoid writing the data. Otherwise, the data is written after the handle is closed.
CUXLDEN_FILE_ATTRIBUTE_RUN If the target download file is finished, shell open the file automatically.

 

 
Microsoft Windows logo are trademarks or registered trademarks of Microsoft Corporation
in the United States and/or other countries.

1B Level 2 130 Queen ST. Brisbane QLD. 4000 Australia
Phone: 07 3211 0199  Fax: 07 3211 0144

Copyright ⓒ 2007 AILOGIX Pty., Ltd. All rights reserved.