Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The Reset method moves to the beginning of the attribute-enumeration sequence.
HRESULT Reset();
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.
Upon successful completion of this method, call the IEnumCERTVIEWATTRIBUTE::Next method to reference the first attribute in the attribute-enumeration sequence. The attribute name and value can be accessed by using the following methods:
// pEnumAttr is a previously instantiated
// IEnumCERTVIEWATTRIBUTE object.
HRESULT hr;
LONG Index;
hr = pEnumAttr->Reset();
if (S_OK != hr)
printf("Unable to reset pEnumAttr - %x\n", hr );
// Call the appropriate error handler and exit routine.
else
{
// Reset to the beginning of the attributes again.
while (S_OK == pEnumAttr->Next(&Index))
{
// Use each attribute as needed.
}
}
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 |
IEnumCERTVIEWATTRIBUTE::GetName
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today