How to force Advantage Database Server to set license count in Delphi code
I would like to get the number of installed user licenses for an Advantage Database Server instance in code using Delphi. I found a function that allows me to get the installed version i.e. ACE.AdsMgGetInstallInfo (dm.AdsConnection1.handle, @stInstallInfo, @usSize); but not everything that allows me to check the number of licenses.
source to share
ACE.AdsMgGetInstallInfo
The API call you talked about should be correct.
Once called, the relevant information is in the structure ADS_MGMT_INSTALL_INFO
(@stInstallInfo in your example). The field you are looking for is UNSIGNED32
called ulMaxStatefulUsers
.
source to share