Begin using your custom licenses by calling certain functions in the VBVFrame. VBVFrame has four public member functions for controlling custom licenses: GrabCustomLicense, ReleaseCustomLicense, GetCustomLicensesCount, and GetFreeCustomLicensesCount.
To grab and reserve one license under a particular license name, use this function:
VBVFrame1.GrabCustomLicense(LicenseName As String) As Integer
Where LicenseName is composed of the prefix you chose to distinguish your custom licenses from other licenses plus your custom license name.
The reserved license is tied to a particular machine and process. You can use this license as often as you need inside that process without the need to release it.
You determine whether you want to reserve all the licenses needed on the application start up and then release them all at the end, or whether you want to flexibly reserve them and release them as needed.
The return value is a unique ID. This ID is used to later release this particular license. While runtime licenses are released immediately upon closing the application, custom licenses are automatically released after an expiry time has passed.
It is your responsibility to release a custom license, so be sure to keep track of the custom licenses requested.
To release a reserved license, use this function:
VBVFrame1.ReleaseCustomLicense(LicenseName As String, LicenseID As Integer)
You need the license name used to reserve the license and the license ID that was returned upon license grabbing.
However, a special use of this function would to release all the licenses reserved in the current process under the name LicenseName by calling this function and passing zero as a LicenseID.
To determine how many custom licenses under a particular license name are loaded and activated on the RTM, use this function:
VBVFrame1.GetCustomLicensesCount(LicenseName As String) As Integer
To determine how many custom licenses are still available to be reserved on the RTM under a particular license name, use this function:
VBVFrame1.GetFreeCustomLicensesCount(LicenseName As String) As Integer