ICertRequest2::GetCAProperty method (certcli.h)
The GetCAProperty method retrieves a property value for the certification authority (CA). This method's functionality is identical to ICertAdmin2::GetCAProperty. For information about this method, see ICertAdmin2::GetCAProperty.
HRESULT GetCAProperty( [in] const BSTR strConfig, [in] LONG PropId, [in] LONG PropIndex, [in] LONG PropType, [in] LONG Flags, [out, retval] VARIANT *pvarPropertyValue );
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.
Specifies the property identifier. For information about this parameter, see the table in ICertAdmin2::GetCAProperty.
If PropId is indexed, the zero-based index to use when retrieving the property value. If PropId is not indexed, this value is ignored.
Specifies the type of the property, which corresponds to the Type column in the PropId table. The type can be one of the following types.
||Signed long data|
||Date/time (reserved for future use)|
||Unicode string data|
The following flags can be used to specify the format of the returned property value; these flags have meaning only for binary data (such as certificates, certificate chains, or certificate revocation lists) and is ignored otherwise.
[out, retval] pvarPropertyValue
A pointer to a VARIANT that receives the requested property value.
When you have finished using the VARIANT, free it by calling the VariantClear function.
C++If the method succeeds, the method returns S_OK.
If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
VBThe return value is a Variant that receives the requested property value.
|Minimum supported client||None supported|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|Header||certcli.h (include Certsrv.h)|