ICEnroll::get_RequestStoreType method (xenroll.h)
[This property is no longer available for use as of Windows Server 2008 and Windows Vista.]
The default value of this property is sz_CERT_STORE_PROV_SYSTEM. If the default is not to be used, this property must be set to the same value before calls to createPKCS10/createFilePKCS10 and again before calls to acceptPKCS7/acceptFilePKCS7.
Only system stores are supported. This property was first defined in the ICEnroll interface.
This property is read/write.
HRESULT get_RequestStoreType( BSTR *pbstrType );
Typically, modification of the RequestStoreType property is performed only in advanced applications.
RequestStoreType affects the behavior of the following methods:
The ability to set this property is disabled when the Certificate Enrollment Control is executed as a scripted control.
BSTR bstrStoreType = NULL; HRESULT hr; // pEnroll is previously instantiated ICEnroll interface pointer // get the storetype hr = pEnroll->get_RequestStoreType( &bstrStoreType ); if ( FAILED ( hr ) ) printf("Failed getting RequestStoreType - %x\n", hr ); else printf( "RequestStoreType: %ws\n", bstrStoreType ); // free BSTR when done if ( NULL != bstrStoreType ) SysFreeString( bstrStoreType ); // set the storetype // bstrNewType is a BSTR that is previously set to a valid store type hr = pEnroll->put_RequestStoreType( bstrNewType ); if ( FAILED ( hr ) ) printf("Failed setting RequestStoreType - %x\n", hr ); else printf( "RequestStoreType was set to %ws\n", bstrNewType );
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|