ホーム › Security.Cryptography.Certificates › IX509CertificateTemplateWritable
IX509CertificateTemplateWritable
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 5
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT Initialize(IX509CertificateTemplate* pValue)
| pValue | IX509CertificateTemplate* | inoptional | 書き込み可能オブジェクトの初期化元となる IX509CertificateTemplate オブジェクトを渡す。 |
vtbl 8 HRESULT Commit(CommitTemplateFlags commitFlags, LPWSTR strServerContext)
| commitFlags | CommitTemplateFlags | in | テンプレートの変更をどのようにコミットするかを指定する CommitTemplateFlags 列挙値である。 |
| strServerContext | LPWSTR | in | コミット先のサーバーコンテキスト(ディレクトリサーバー名等)を文字列で指定する。 |
vtbl 9 HRESULT get_Property(EnrollmentTemplateProperty property, VARIANT* pValue)
| property | EnrollmentTemplateProperty | in | 取得する証明書テンプレートのプロパティを識別する EnrollmentTemplateProperty 列挙値である。 |
| pValue | VARIANT* | out | 指定したテンプレートプロパティの値を VARIANT として受け取るポインタである。 |
vtbl 10 HRESULT put_Property(EnrollmentTemplateProperty property, VARIANT value)
| property | EnrollmentTemplateProperty | in | 設定する証明書テンプレートのプロパティを識別する EnrollmentTemplateProperty 列挙値である。 |
| value | VARIANT | in | 指定プロパティに設定する値を VARIANT として渡す。 |
vtbl 11 HRESULT get_Template(IX509CertificateTemplate** ppValue)
| ppValue | IX509CertificateTemplate** | out | この書き込み可能オブジェクトが表す IX509CertificateTemplate オブジェクトを受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IX509CertificateTemplateWritable "{F49466A7-395A-4E9E-B6E7-32B331600DC0}" #usecom global IX509CertificateTemplateWritable IID_IX509CertificateTemplateWritable "{}" #comfunc global IX509CertificateTemplateWritable_Initialize 7 sptr #comfunc global IX509CertificateTemplateWritable_Commit 8 int,wstr #comfunc global IX509CertificateTemplateWritable_get_Property 9 int,var #comfunc global IX509CertificateTemplateWritable_put_Property 10 int,int #comfunc global IX509CertificateTemplateWritable_get_Template 11 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IX509CertificateTemplateWritable "{F49466A7-395A-4E9E-B6E7-32B331600DC0}" #usecom global IX509CertificateTemplateWritable IID_IX509CertificateTemplateWritable "{}" #comfunc global IX509CertificateTemplateWritable_Initialize 7 sptr #comfunc global IX509CertificateTemplateWritable_Commit 8 int,wstr #comfunc global IX509CertificateTemplateWritable_get_Property 9 int,sptr #comfunc global IX509CertificateTemplateWritable_put_Property 10 int,int #comfunc global IX509CertificateTemplateWritable_get_Template 11 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。