KSC Open API
Kaspersky Security Center API description
wstring NagRdu::RunKlnagchkAsync ( wstring  szwProductID)

Asynchronously runs the diagnostic utility (klnagchk.exe) for a specific product.

Parameters:
szwProductIDproduct ID. Taken from the container of the current host state.
Returns:
ID of an asynchronous request. Use this ID to get the result with the current host state and new klnagchk.log in it.
Remarks:
To check the state of the diagnostic utility run procedure, call AsyncActionStateChecker::CheckActionState periodically until the procedure is completed. If the procedure succeeds, AsyncActionStateChecker::CheckActionState returns the current host state in pStateData. Otherwise, a call to AsyncActionStateChecker::CheckActionState returns an error in pStateData.
Exceptions:
Thefunction throws an exception in case of an error.