INetDiagHelper::GetCacheTime method (ndhelper.h)
The GetCacheTime method specifies the time when cached results of a diagnosis and repair operation have expired.
Syntax
HRESULT GetCacheTime(
[out] FILETIME *pCacheTime
);
Parameters
[out] pCacheTime
A pointer to a FILETIME structure.
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.
The default behavior is to return the current time so that the results will not be cached. Setting a cache time can increase diagnosis efficiency since NDF will not call on the extension to re-diagnose an issue unless the cache time has expired.
The FILETIME structure is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC).
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 |