AdsMgGetServerType

Advantage Client Engine

Returns the Advantage server type of the current management API connection

Syntax

UNSIGNED32

AdsMgGetServerType ( ADSHANDLE hMgmtConnect,

UNSIGNED16 *pusServerType );

Parameters

hMgmtConnect (I)

Management API connection handle.

pusServerType (O)

Advantage server type of the current management API connection.

Remarks

AdsMgGetServerType returns the Advantage server type of the current management connection.

If connected to the Advantage Database Server for NetWare, and the version of NetWare 4.x, ADS_MGMT_NETWARE4_OR_OLDER_SERVER is returned. If connected to the Advantage Database Server for NetWare, and the version of NetWare is 5 or greater, ADS_MGMT_NETWARE5_OR_NEWER_SERVER is returned.

If connected to the Advantage Database Server for Windows NT/2000/2003, ADS_MGMT_NT_SERVER is returned. If connected to the Advantage Database Server for Windows 95/98/ME, ADS_MGMT_WIN9X_SERVER is returned.

If connected to the Advantage Local Server, ADS_MGMT_LOCAL_SERVER is returned.

If connected to the Advantage Database Server for Linux, ADS_MGMT_LINUX_SERVER is returned.

Example

Click Here

See Also

AdsMgConnect

AdsGetConnectionType