The Silent property specifies or retrieves a Boolean value that indicates whether any of the key-related modal dialogs are displayed during the certificate enrollment process.
This property is read/write.
HRESULT put_Silent( [in] VARIANT_BOOL Value ); HRESULT get_Silent( [out] VARIANT_BOOL *pValue );
A VARIANT_BOOL variable. A value of VARIANT_TRUE indicates that no user interface should be displayed.
If the function succeeds, the function returns S_OK.
If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
This property value is used by key-related Certificate Enrollment Control modal dialogs that:
- Direct a user to insert a smart card
- Request a smart card pin number
- Request the protection level for a new key
- Request a user password before accessing a key
You can set this property before calling any initialization method or the Encode method. For a PKCS #10 request, the property value is retrieved from and specified on the associated IX509PrivateKey object if the key exists. For a PKCS #7 or CMC request the property value is updated on the inner request and all signing certificates.
If the certificate request contains nested requests and you set the Silent property on the top level request, it is automatically propagated to all of the inner requests. You can, however, set the property manually on each of the inner objects.
Minimum supported client
|Windows Vista [desktop apps only]|
Minimum supported server
|Windows Server 2008 [desktop apps only]|