Gets the location of the floating license database (or xml file). The location can be set in the QLM database using the SetFloatingLicenseLocation method. In order to ensure that a user has not duplicated the floating license database, you can call SetFloatingLicenseLocation to set the location of the floating license database when it is initially registered. Subsequently, when your application starts up, you can call GetFloatingLicenseLocation and compare the registered location with the real location of the database.
C#: public bool GetFloatingLicenseLocation(string webServiceUrl, string activationKey, out string location, out string message)
webServiceUrl - URL to the QLM License Server.
activationKey - activation key associated to this installation.
location - full path of the floating license DB or xml file.
message - return message in case of an error.
This article states the function's parameters as (string webServiceUrl, string activationKey, out string location, out string message). However, on the version of the DLL I'm using, the parameters are just (string webServiceUrl, out string location, out string message) - i.e. activationKey is missing.
I think this means that under the covers, the call is looking in the registry/user files for a stored activationKey, and if it doesn't find one, the call will fail. This means it can't be run on a floating 'node' (as opposed to floating 'master'), as 'nodes' shouldn't have any keys stored in their registry/user files.
Article is closed for comments.