User`s guide

lxvi Contents
Send File—Function 90
This function transfers a file from the PC running the Windows HLLAPI application to the Host. The
file transfer can be synchronous (dedicated) or asynchronous (call-and-return). See the “Remarks”
section for information on asynchronous file transfer.
Prerequisite Functions
None.
WinHLLAPI(SENDFILE,lpbyString,lpwLength,lpwReturnnCode)
WinHLLAPIAsync(hWnd,SENDFILE,lpbyString,lpwLength,
lpwReturnnCode)
Parameter Description
Data String SEND command parameters.
Data Length Length of Data String. NA if session option EOT is
specified.
PS Position NA.
Code Description
WHLLOK File transfer started successfully (asynchronous mode
only).
WHLLPARAMETERERROR
Parameter error or Data Length is zero or greater than
128.
WHLLFTXCOMPLETE The file transfer completed (synchronous mode only).
WHLLFTXSEGMENTED Transfer completed with one or more segmented
records (synchronous mode only).
WHLLSYSERROR The function failed due to a system error.
WHLLTRANSABORTED The file transfer aborted, either due to the user
entering CTRL+BREAK or (if a timeout was set by Set
Session Parameters, function 9) because the timeout
period expired.
WHLLINVALIDFUNCTIONNUM Invalid function number.
WHLLFILENOTFOUND PC file not found.
WHLLACCESSDENIED Access denied to PC file.
WHLLMEMORY Insufficient memory.
WHLLINVALIDENVIRONMENT Invalid environment.
Function Call
Call Parameters
Return Codes