User`s guide

cxxvi Contents
Get Request Completion—Function 125
This function allows the application to determine the status of a previous asynchronous function
request issued to WinHLLAPI, and obtains the function parameter list before using the data string
again.
Prerequisite Functions
Connect Structured Fields (120) and either Read Structured Fields (126) or Write Structured Fields
(127).
WinHLLAPI(GETREQUESTCOMP,lpbyString,lpwLength,
lpwReturnnCode)
Parameter Description
Data String A 14-byte string with the following format:
Byte 1 A 1-character session short name.
Byte 2 One of the following:
N (no wait)
W (wait)
Bytes 3-4 A 16-bit word (2 bytes) into which the
function request ID has been placed.
Bytes 5-14 Reserved for returned parameters
Data Length NA (defaults to 14).
PS Position NA.
Parameter Description
Data String If the return code from this function is 0:
Bytes 5-6 Two bytes containing the function code of the
completed async function.
Bytes 7-10 Four bytes containing the address of the data
string of the completed async function call. The
application must not reuse the data string until the
request has completed.
Bytes 11-12 Two bytes containing the length of the data string
of the completed async function.
Bytes 13-14 Two bytes containing the return code of the
completed async function.
Function Call
Call Parameters
Return Parameters