HP-UX SNAplus2 CSV Programmer's Guide
Concepts
CSV Entry Points: Windows
Chapter 1 27
Before using the WinAsyncCSV call for the first time, the application
must use RegisterWindowMessage to obtain the message identifier that
CSV will use for messages indicating asynchronous verb completion. For
more information, see “Windows Considerations”.
Function Call
HANDLE WINAPI LOADDS WinAsyncCSV (
HWND hWnd,
long vcbptr
);
Supplied Parameters
The supplied parameters are:
hWnd
A window handle that CSV will use to post a message
indicating asynchronous verb completion.
vcbptr
A pointer to the VCB structure for the verb. This
parameter is defined as a long integer, and so needs to
be cast from a pointer to a long integer. For more
information about the VCB structure and on its usage
for individual verbs, see Chapter 2, “Common Service
Verbs Reference.”
Returned Values: TRANSFER_MS_DATA
If the function was successful, the return value is a handle. When the
verb later completes, CSV uses this handle as an identifier in the
message passed to the application's window procedure (for more
information, see “Usage”).
A return value of 0 indicates that the function call was not accepted.
Returned Values: Other Verbs
For all verbs other than TRANSFER_MS_DATA, the function operates
in the same way as the WinCSV entry point (described in the previous
section), and does not return a value. When the call returns, the
application should check the
primary_rc
and
secondary_rc
parameters
in the VCB structure to determine whether the verb completed
successfully.