[This is preliminary documentation and subject to change.]
The Configure method displays the module user interface.
[VB] Configure(
String strConfig
);
[JAVA] Configure(
java.lang.String strConfig
);
[C++] HRESULT Configure(
BSTR const strConfig // in
);
[C++] The return value is an HRESULT. A value of S_OK indicates success.
The Configure method displays the module user interface, allowing the user to view and change the module's configurable items.
HRESULT hr;
BSTR strCertServ = NULL;
ICertManageModule * pIManageModule = NULL;
// instantiate ICertManageModule object
hr = CoCreateInstance(
myClsid,
NULL,
CLSCTX_INPROC_SERVER,
IID_ICertManageModule,
(void **) &pIManageModule);
if ( FAILED( hr ) )
{
printf("Unable to instantiate ICertManageModule object\n");
goto error;
}
bstrCertServ = SysAllocString("MyCertServ");
// display the configuration interface
hr = pIManageModule->Configure( bstrCertServ );
if ( S_OK == hr )
{
// user interface is displayed...
}
else
printf("ICertManageModule::Configure failed with code %x\n", hr);
error:
// free resources when done
if ( NULL != bstrCertServ )
SysFreeString( bstrCertServ );
if ( NULL != pIManageModule )
pIManageModule->Release();
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in certmod.h.
Import Library: Use certidl.lib.