User`s guide

Contents lvii
Receive File—Function 91
This function transfers a file from the Host to the PC running the Windows HLLAPI application. 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(hWnd,RECEIVEFILE,lpbyString,lpwLength,
lpwReturnnCode)
WinHLLAPIAsync(hWnd,RECEIVEFILE,lpbyString,lpwLength,
lpwReturnnCode)
Parameter Description
Data String RECEIVE 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 The file transfer completed with one or more
segmented records (synchronous mode only).
WHLLSYSERROR The function failed due to a system error.
WHLLFTXABORTED 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.
WHLLINVALIDFORMAT Invalid format.
Function Call
Call Parameters
Return Codes