IWinSATInitiateEvents::WinSATComplete method (winsatcominterfacei.h)

[IWinSATInitiateEvents::WinSATComplete may be altered or unavailable for releases after Windows 8.1.]

Receives notification when an assessment succeeds, fails, or is canceled.

Syntax

HRESULT WinSATComplete(
  [in] HRESULT hresult,
  [in] LPCWSTR strDescription
);

Parameters

[in] hresult

The return value of the assessment. The following are the possible return values of the assessment.

Value Meaning
WINSAT_STATUS_COMPLETED_SUCCESS
0x40033
The assessment completed successfully.
WINSAT_ERROR_ASSESSMENT_INTERFERENCE
0x80040034
The assessment could not complete due to system activity.
WINSAT_ERROR_COMPLETED_ERROR
0x80040035
The assessment could not complete due to an internal or system error.
WINSAT_ERROR_WINSAT_CANCELED
0x80040036
The assessment was canceled.
WINSAT_ERROR_COMMAND_LINE_INVALID
0x80040037
The command line passed to WinSAT was not valid.
WINSAT_ERROR_ACCESS_DENIED
0x80040038
The user does not have sufficient privileges to run WinSAT.
WINSAT_ERROR_WINSAT_ALREADY_RUNNING
0x80040039
Another copy of WinSAT.exe is already running; only one instance of WinSAT.exe can run on the computer at one time.

[in] strDescription

The description of the completion status. This string is valid during the life of this callback. Copy the string if you need it after the callback returns.

Return value

This method should return S_OK; the value is ignored.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header winsatcominterfacei.h
DLL Winsatapi.dll

See also

IInitiateWinSATAssessment

IWinSATInitiateEvents

IWinSATInitiateEvents::WinSATUpdate