Give Us a Call: +1-877-99-BOPUP or Request for a Chat en Vivo

IServerClient::ReceiveFile method

Receives incoming file data.

HRESULT ReceiveFile(     LPDWORD lpTransferNotifyFileStruct,     LPSTR lpszSaveDirectory,     LPDWORD lpdwExtendedCode );

Parameters

lpTransferNotifyFileStruct
[in] Pointer to a TRANSFER_NOTIFY_FILE_STRUCT structure that contains information on the incoming files/directories that are being received.
lpszSaveDirectory
[in] Pointer to a null-terminated text buffer that contains full path to a folder in which to save received data to. Size of the buffer must not exceed 255 symbols of length.
lpdwExtendedCode
[out] Pointer to a DWORD variable that gets an extended code if error result is returned. For available codes see Available Extended Codes topic.

Return Value

S_OK
The function was successful. Check lpdwExtendedCode variable to get extended information.
E_INVALIDARG
One or more arguments are incorrect.
E_FAIL
Some error occurred in the function. Check lpdwExtendedCode variable to get extended information on the error.