AdsAmsPortEnabledEx

Returns the state of the ADS client connection.

LONG AdsAmsPortEnabledEx(
  LONG       nPort,
  BOOL*      pbEnabled
);

Parameter

nPort

[in] port number of an ADS port that had previously been opened with AdsPortOpenEx or AdsPortOpen.

pbEnabled

[out] Buffer for the state value.

Return value

Returns the function's error state.

Sample

-