INetDiagHelper::Validate method (ndhelper.h)
The Validate method is called by NDF after a repair is successfully completed in order to validate that a previously diagnosed problem has been fixed.
Syntax
HRESULT Validate(
[in] PROBLEM_TYPE problem,
[out] long *pDeferredTime,
[out] REPAIR_STATUS *pStatus
);
Parameters
[in] problem
The PROBLEM_TYPE that the helper class has previously diagnosed.
[out] pDeferredTime
A pointer to the time to be deferred, in seconds, if the diagnosis cannot be started immediately. This is used only when the pStatus member is set to DS_DEFERRED.
[out] pStatus
A pointer to the DIAGNOSIS_STATUS that is returned from the diagnosis.
Return value
Return code | Description |
---|---|
|
The operation succeeded. |
|
There is not enough memory available to complete this operation. |
|
One or more parameters has not been provided correctly. |
|
This optional method is not implemented. |
|
The caller does not have sufficient privileges to perform the diagnosis or repair operation. |
|
The diagnosis or repair operation has been canceled. |
Helper Class Extensions may return HRESULTS that are specific to the failures encountered in the function.
Remarks
This method is not required when building a Helper Class Extension.
This method only returns an error code if it encounters failures that impede validation. If necessary, the pStatus parameter is the expected way to communicate that the component is still in low health. DS_REJECTED is used to indicate that the issue has been resolved.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | ndhelper.h |