Specifications
17.5.2. Methods
Function Description
AddFile
Add a file to be transmitted.
ClearFile
Clear a file added by AddFile.
GetFile
Acquires the file name of the file to be transmitted or received.
GetFileCount
At the transmission side, returns the number of transmitted files, and at the
receipt side, returns the number of received files, including the file currently
being received.
GetTransferredCount
Returns the number of files for which transmission or receipt is complete.
Send
Transmit a file specified by AddFile.
Receive
Receive a file.
Abort
Abort the current file transmission process.
GetState
Get the current file transmission status.
GetError
Return the error information about the transaction processed last.
AddFile
Description
Add a file to be transmitted. Specify the filename excluding its pathname. The length of the filename is
within 90 characters.
Syntax
long AddFile (
LPCTSTR FileName )
Parameters
FileName
[in] Filename excluding pathname
Return value
Error code Meaning
ERROR_SUCCESS Successful completion
ERROR_INVALID_PARAMETER
NULL set to the parameter.
Filename length is 0.
ERROR_FILENAME_EXCED_RANGE Filename too long
151










