KSC Open API
Kaspersky Security Center API description
LicenseInfoSync::AcquireKeysForProductOnHost ( wstring  szwHostName,
wstring  szwProduct,
wstring  szwVersion,
[out] wstring  wstrActiveKey,
[out] wstring  wstrReservedKey 
)

Acquire active and reserved license keys, which are on the host.

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 "KLLICSRV_VERSION" property of List of host-specific license key properties. Required.
Return values:
wstrActiveKey(wstring) License key serial number of an active license key.
wstrReservedKey(wstring) License key serial number of a reserved license key.
Exceptions:
Throwsexception in case of error.