WinCSVStartup()

This function allows an application to specify the version of the Common Services Verbs API required and to retrieve details of the specific CSV API. This call is not required, but if used, the WinCSVCleanup call should be used also.

Syntax

int WINAPI WinCSVStartup (WORD wVersion,
                          LPWCSVDATA lpData);

Parameters

wVersion
Specifies the version of CSV API support required. The high-order byte specifies the minor version (revision) number; the low-order byte specifies the major version number.
lpData
Contains information about the underlying CSV API DLL.

Returned Values

The return value indicates whether the CSV API successfully registered the application and whether it can support the provided version number. If the value returned is 0, the CSV API does support the specified version and it successfully registered the application. Otherwise, one of the following values is returned.
WCSVVERNOTSUPPORTED
This particular CSV API does not provide the version of CSV API support requested.
WCSVINVALID
The CSV API could not determine the requested version.

Usage Notes

WinCSVStartup() is intended to help with compatibility with future releases of the API. The current version supported is 1.0.

The following structure describes details of the actual CSV API implementation.
typedef struct tagWCSVDATA { WORD wVersion;
                 char szDescription[WCSVDESCRIPTION_LEN+l];
                 } WCSVDATA, FAR *LPWCSVDATA;

When an application has made its last CSV API call, it calls WinCSVCleanup().