KSC Open API
Kaspersky Security Center API description
wstring NagRdu::ExecuteFileAsync ( wstring  szwURL,
wstring  szwShortExecName,
wstring  szwParams 
)

Asynchronously runs an executable file previously uploaded to the host using GetUrlToUploadFileToHost.

The uploaded file should be a zip archive with the executable file and, maybe, other files and folders. The archive should be in the utility folder.

Parameters:
szwURLURL path that was previously used to upload a file.
szwShortExecNameshort file name of an executable file in the utility folder, in the zip archive.
szwParamscommand-line parameters.
Returns:
ID of an asynchronous request. Use this ID to get the result with the URL path for the subsequent download of an executable output file.
Note:
Example of uploaded file structure:
                    archive.zip
                        utility
                            executable.exe
                            [other_files]
                
Remarks:
To check the state of the executable file run procedure, call AsyncActionStateChecker::CheckActionState periodically until the procedure is completed. If the operation succeeds, AsyncActionStateChecker::CheckActionState returns a URL path in pStateData. Otherwise, the AsyncActionStateChecker::CheckActionState call returns an error in pStateData.
Exceptions:
Thefunction throws an exception in case of an error.