Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Reset method moves to the beginning of the extension-enumeration sequence.
Syntax
HRESULT Reset();
Return value
VB
If the method succeeds, the method returns S_OK.If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
Remarks
Upon successful completion of this method, call the IEnumCERTVIEWEXTENSION::Next method to reference the first extension in the extension-enumeration sequence.
The extension name, flags, and value can be accessed through the following methods:
Examples
HRESULT hr;
LONG Index;
// pEnumExt is previously instantiated IEnumCERTVIEWEXTENSION object
hr = pEnumExt->Reset();
if (S_OK != hr)
printf("Unable to reset pEnumExt - %x\n", hr);
// call appropriate error handler / exit routine
else
{
// reset to beginning of extensions again
while (S_OK == pEnumExt->Next(&Index))
{
// Use each extension as needed.
}
}
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | certview.h (include Certsrv.h) |
Library | Certidl.lib |
DLL | Certadm.dll |
See also
IEnumCERTVIEWEXTENSION::GetFlags
IEnumCERTVIEWEXTENSION::GetName