ホーム › Security.Cryptography.Certificates › ICertificationAuthorities
ICertificationAuthorities
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 8
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT get_ItemByIndex(INT Index, ICertificationAuthority** pVal)
| Index | INT | in | 取得する認証局の 0 起点のインデックスを指定する。 |
| pVal | ICertificationAuthority** | out | 指定インデックスの ICertificationAuthority オブジェクトを受け取るポインタである。 |
| pVal | INT* | out | コレクションに含まれる認証局の個数を受け取るポインタである。 |
| pVal | IUnknown** | out | コレクションを列挙するための列挙子(IUnknown、通常 IEnumVARIANT)を受け取るポインタである。 |
vtbl 10 HRESULT Add(ICertificationAuthority* pVal)
| pVal | ICertificationAuthority* | inoptional | コレクションに追加する ICertificationAuthority オブジェクトを渡す。 |
| Index | INT | in | コレクションから削除する認証局の 0 起点のインデックスを指定する。 |
vtbl 12 HRESULT Clear()
vtbl 13 HRESULT ComputeSiteCosts()
vtbl 14 HRESULT get_ItemByName(LPWSTR strName, ICertificationAuthority** ppValue)
| strName | LPWSTR | in | 取得する認証局の名前を文字列で指定する。 |
| ppValue | ICertificationAuthority** | out | 指定名に一致する ICertificationAuthority オブジェクトを受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ICertificationAuthorities "{13B79005-2181-11DA-B2A4-000E7BBB2B09}" #usecom global ICertificationAuthorities IID_ICertificationAuthorities "{}" #comfunc global ICertificationAuthorities_get_ItemByIndex 7 int,sptr #comfunc global ICertificationAuthorities_get_Count 8 var #comfunc global ICertificationAuthorities_get__NewEnum 9 sptr #comfunc global ICertificationAuthorities_Add 10 sptr #comfunc global ICertificationAuthorities_Remove 11 int #comfunc global ICertificationAuthorities_Clear 12 #comfunc global ICertificationAuthorities_ComputeSiteCosts 13 #comfunc global ICertificationAuthorities_get_ItemByName 14 wstr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ICertificationAuthorities "{13B79005-2181-11DA-B2A4-000E7BBB2B09}" #usecom global ICertificationAuthorities IID_ICertificationAuthorities "{}" #comfunc global ICertificationAuthorities_get_ItemByIndex 7 int,sptr #comfunc global ICertificationAuthorities_get_Count 8 sptr #comfunc global ICertificationAuthorities_get__NewEnum 9 sptr #comfunc global ICertificationAuthorities_Add 10 sptr #comfunc global ICertificationAuthorities_Remove 11 int #comfunc global ICertificationAuthorities_Clear 12 #comfunc global ICertificationAuthorities_ComputeSiteCosts 13 #comfunc global ICertificationAuthorities_get_ItemByName 14 wstr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。