ICertManageModule::GetName

[This is preliminary documentation and subject to change.]

The GetName method retrieves the name of the module.

[VB] String GetName();
 
[JAVA] java.lang.String GetName();
 
[C++] HRESULT GetName(
  BSTR *pstrName         // out
);

Parameters

[C++] pstrName
Pointer to a BSTR type that will contain the name of the module. The GetName method fails if pstrName is NULL. It is the caller's responsibility to call SysFreeString when done with pstrName.

Return Values

[VB][JAVA] The return value is a String representing the name of the module.

[C++] The return value is an HRESULT. A value of S_OK indicates success.

Remarks

The GetName method is used to retrieve the name of the module.

Example

HRESULT   hr;
BSTR      bstrName = NULL;

// pIManageModule is previously instantiated ICertManageModule object
hr = pIManageModule->GetName( &bstrName );
if ( S_OK == hr )
    printf("Name is: %S\n", bstrName );

// free resources when done
if ( NULL != bstrName )
    SysFreeString( bstrName );
 

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in certmod.h.
  Import Library: Use certidl.lib.