ICEnroll::get_MyStoreType method (xenroll.h)
[This property is no longer available for use as of Windows Server 2008 and Windows Vista.]
The MyStoreType property sets or retrieves the type of store specified by the MyStoreName property. This store type is passed directly on to CertOpenStore.
The default value for this property is sz_CERT_STORE_PROV_SYSTEM. Only system stores are supported. This property was first defined in the ICEnroll interface.
This property is read/write.
Syntax
HRESULT get_MyStoreType(
BSTR *pbstrType
);
Parameters
pbstrType
Return value
None
Remarks
The MyStoreType property 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.
Examples
BSTR bstrStoreType = NULL;
HRESULT hr;
// pEnroll is previously instantiated ICEnroll interface pointer
// get the storetype
hr = pEnroll->get_MyStoreType( &bstrStoreType );
if ( FAILED ( hr ) )
printf("Failed getting MyStoreType - %x\n", hr );
else
printf( "MyStoreType: %ws\n", bstrStoreType );
// free BSTR when done
if ( NULL != bstrStoreType )
SysFreeString( bstrStoreType );
// set the storetype
// bstrNewType previously set to a valid store type
hr = pEnroll->put_MyStoreType( bstrNewType );
if ( FAILED ( hr ) )
printf("Failed setting MyStoreType - %x\n", hr );
else
printf( "MyStoreType was set to %ws\n", bstrNewType );
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | xenroll.h |
Library | Uuid.lib |
DLL | Xenroll.dll |