KSC Open API
Kaspersky Security Center API description
int MdmCertCtrlApi::CheckPkiAccount ( wstring  wsAccountName,
binary  pAccountPwd,
wstring  wsHostName 
)

Check if PKI account is valid.

Parameters:
wsAccountName(wstring) PKI account's name
pAccountPwd(binary) PKI account's password (encrypted)
wsHostName(wstring) Identifier of host with PKI agent (see parameter KLHST_WKS_HOSTNAME in List of host attributes)
Returns:
PKI account check result

PKI account check result

Check resultDescription
0OK
1Unknown error
2Wrong account
3Unable to logon
4Insufficient privileges