ReadDeviceInfo

Reads device information from the ADS device.

HRESULT ReadDeviceInfo(
  BSTR*       pName,
  AdsVersion* pVersion
);

Parameter

pName

[out] Variable containing the BSTR string describing the ADS device.

pVersion

[out] Pointer to a variable of type AdsVersion, which contains the version number.

Return values

S_OK

The function was called successfully.

ADSERRORCODES

An error occurs.