AdsMgGetServerType

Returns the Advantage server type.

Syntax

UNSIGNED32 AdsMgGetServerType(ADSHANDLE hMg, UNSIGNED16* pusT);

Parameters

Parameter

Type

Description

hMg

ADSHANDLE

Management connection handle.

pusT

UNSIGNED16*

Pointer to the variable that receives the server type.

Return Value

AE_SUCCESS (0) on success. Error code on failure.

Description

AdsMgGetServerType returns the type of Advantage server to which the management connection is connected. The returned values are:

  • ADS_AIS_SERVER (1) — Advantage Internet Server
  • ADS_LINUX (2) — Advantage server on Linux

Example

UNSIGNED16 usType;
AdsMgGetServerType(hMgmt, &usType);
if (usType == ADS_AIS_SERVER) {
    // AIS server (Windows)
}

See Also


AdsMgGetUserNames →



This site uses Just the Docs, a documentation theme for Jekyll.