I would like to be able to get the number of installed user licenses for an Advantage Database Server instance in code using Delphi. I have found a function that lets me get the installed version, ie. ACE.AdsMgGetInstallInfo(dm.AdsConnection1.handle,@stInstallInfo,@usSize);, but not anything that lets me check the license count.
The ACE.AdsMgGetInstallInfo
API call you mentioned should be the correct call.
After the call the appropriate info is in the ADS_MGMT_INSTALL_INFO
structure (@stInstallInfo in your example). The field you're looking for is an UNSIGNED32
called ulMaxStatefulUsers
.