IInitiateWinSATAssessment::CancelAssessment method (winsatcominterfacei.h)
[IInitiateWinSATAssessment::CancelAssessment may be altered or unavailable for releases after Windows 8.1.]
Cancels a currently running assessment.
Syntax
HRESULT CancelAssessment();
Return value
Returns S_OK if successful; otherwise, the method returns the following error code or a Win32 error code returned as an HRESULT.
Return code/value | Description |
---|---|
|
There is no running assessment to cancel. |
Remarks
This method sends WinSAT a request to cancel the assessment. To determine if the cancel request succeeded, implement the IWinSATInitiateEvents::WinSATComplete method and check the hresult parameter for a value of WINSAT_ERROR_WINSAT_CANCELED.
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 |