KSC Open API  13.0
Kaspersky Security Center API description
DataProtectionApi::ProtectDataForHost ( wstring  szwHostId,
binary  pData,
[out] binary  pDataProtected 
)

Protects sensitive data to store in SettingsStorage or local task.

Parameters:
szwHostId(wstring) [in] host name
pData(binary) [in] pointer to data
pDataProtected(binary) [out] pointer to protected data block.
Exceptions:
KLSTD::STDE_NOTPERMhost has no public key (possibly it doesn't support data protection or nagent isn't installed there or host belongs to other virtual server)
KLSTD::STDE_NOFUNCserver doesn't support data protection
*