short GetServerList(VARIANT* List)
Description
This function returns an array containing the names of the database servers defined in QMF for Windows's Server Definition File (SDF). Define a database server in the SDF if you want to access it using the QMF for Windows API.
Parameters
Name | Description |
---|---|
List |
A pointer to a VARIANT in which the result is stored. The result is an array of strings (variant type VT_ARRAY | VT_BSTR), with each string containing the name of one database server. If you have not defined any database servers, the result is empty (variant type VT_EMPTY). Initialize the VARIANT before calling this function. Visual Basic does this automatically. Visual C++ programmers should call VariantInit().
|
Return Value
The return value will be zero if successful or non-zero if unsuccessful. If you have not defined any database servers, the return value is zero. If the return value is non-zero, you can call GetLastErrorString() or GetLastErrorType() to get additional error information.