ICertAdmin2::SetCAProperty method (certadm.h)
The SetCAProperty method sets a property value for the certification authority (CA).
Syntax
HRESULT SetCAProperty(
[in] const BSTR strConfig,
[in] LONG PropId,
[in] LONG PropIndex,
[in] LONG PropType,
[in] VARIANT *pvarPropertyValue
);
Parameters
[in] strConfig
String value that represents a valid configuration string for the CA in the form COMPUTERNAME\CANAME, where COMPUTERNAME is the Certificate Services server's network name, and CANAME is the common name of the CA, as entered during Certificate Services setup. For information about the configuration string name, see ICertConfig.
[in] PropId
Specifies one of the following property identifiers.
For information about all CA properties, including those that are read-only, see ICertAdmin2::GetCAProperty.
[in] PropIndex
If the PropId parameter is indexed, the zero-based index to use when retrieving the property value. If PropId is not indexed, this value is ignored.
[in] PropType
Specifies the type of the property. This parameter can be one of the following values.
Value | Meaning |
---|---|
|
Signed Long data. |
|
Date/Time (reserved for future use). |
|
Binary data. |
|
Unicode String data. |
[in] pvarPropertyValue
C++ | A pointer to a VARIANT that specifies the property value. |
VB | A Variant that specifies the property value. |
Return value
VB
If the function is successful, the return value is S_OK.If the function fails, the return value is an HRESULT that indicates the error. For a list of common error codes, see Common HRESULT Values.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | certadm.h (include Certsrv.h) |
Library | Certidl.lib |
DLL | Certadm.dll |