KSC Open API
Kaspersky Security Center API description
params LicenseInfoSync::AcquireKeysForProductOnHost2 ( wstring  szwHostName,
wstring  szwProduct,
wstring  szwVersion 
)

Acquire serial numbers of the active and reserved licenses on the host.

Parameters:
szwHostName(wstring) Host ID (see "KLLICSRV_HOSTNAME" attribute of List of host-specific license attributes List of host-specific license attributes), mandatory.
szwProduct(wstring) Product ID (see "KLLICSRV_PRODUCT" attribute of List of host-specific license attributes List of host-specific license attributes), mandatory.
szwVersion(wstring) Version (see "KLLICSRV_VERSION" attribute of List of host-specific license attributes List of host-specific license attributes), mandatory.
Returns:
Product license information (params)
            +--- (params)
                +--- Active (array), serial numbers of licenses in product active license slots
                +--- Reserve (array), serial numbers of licenses in product reserve license slots
                +--- Reserving (params) information about reserving licenses
                   +--- <reserve serial> (array) list of serial numbers of reserved licenses
                   +--- ...  
            
Exceptions:
Throwsexception in case of error.