[This is preliminary documentation and subject to change.]
The GetName method retrieves the name of the extension.
[VB] String GetName();
[JAVA] java.lang.String GetName(
);
[C++] HRESULT GetName(
BSTR *pstrOutName // out
);
[VB][JAVA] The return value is a String representing the name of the column.
[C++] The return value is an HRESULT. A value of S_OK indicates success.
This function is used to retrieve the name of the extension currently referenced by the IEnumCERTVIEWEXTENSION object.
If the IEnumCERTVIEWEXTENSION object is not referencing a valid extension, GetName will fail. Use the IEnumCERTVIEWEXTENSION Next method to reference a valid extension.
BSTR bstrExtName = NULL;
// pEnumExt is previously instantiated IEnumCERTVIEWEXTENSION object
hr = pEnumExt->GetName(&bstrExtName);
if ( S_OK == hr )
printf("Extentsion name is: %S\n", bstrExtName );
else
printf("GetName failed: %x\n", hr );
// free memory when done
if ( NULL != bstrExtName )
SysFreeString( bstrExtName );
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in certview.h.
Import Library: Use certidl.lib.
IEnumCERTVIEWEXTENSION::GetFlags, IEnumCERTVIEWEXTENSION::GetValue