Initialize 方法从模板初始化 IX509CertificateTemplateWritable 对象。
Syntax
HRESULT Initialize(
[in] IX509CertificateTemplate *pValue
);
参数
[in] pValue
指向表示证书请求模板的 IX509CertificateTemplate 接口的指针。
返回值
如果函数成功,该函数将返回 S_OK。
如果函数失败,它将返回指示错误的 HRESULT 值。 可能的值包括但不限于下表中的值。 有关常见错误代码的列表,请参阅 通用 HRESULT 值。
| 返回代码/值 | Description |
|---|---|
|
pValue 参数不能为 NULL。 |
|
pValue 参数不指向 IX509CertificateTemplate 接口。 |
|
IX509CertificateTemplateWritable 已初始化。 |
要求
| Requirement | 价值 |
|---|---|
| 最低支持的客户端 | Windows 7 [仅限桌面应用] |
| 支持的最低服务器 | Windows Server 2008 R2 [仅限桌面应用] |
| 目标平台 | Windows操作系统 |
| Header | certenroll.h |