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

Acquire active and reserved license keys, which are on the host (alternative function)

Parameters:
szwHostName(wstring) Host ID. See the "KLLICSRV_HOSTNAME" property of List of host-specific license key properties. Required.
szwProduct(wstring) Product ID. See the "KLLICSRV_PRODUCT" property of List of host-specific license key properties. Required.
szwVersion(wstring) Version. See the "KLLICSRV_VERSION" property of List of host-specific license key properties. Required.
Returns:
Product license information (params)
            +--- (params)
                +--- Active (array), active license keys
                +--- Reserve (array), reserve license keys
                +--- Reserving (params) information about reserving license keys
                   +--- <reserve serial> (array) list of reserved license keys
                   +--- ...  
            
Exceptions:
Throwsexception in case of error.