Win32 API 日本語リファレンス
ホームSecurity.Cryptography.Certificates › ICertificationAuthorities

ICertificationAuthorities

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IID13b79005-2181-11da-b2a4-000e7bbb2b09継承元IDispatch呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl7

メソッド 8

vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。

vtbl 7 HRESULT get_ItemByIndex(INT Index, ICertificationAuthority** pVal)
IndexINTin取得する認証局の 0 起点のインデックスを指定する。
pValICertificationAuthority**out指定インデックスの ICertificationAuthority オブジェクトを受け取るポインタである。
vtbl 8 HRESULT get_Count(INT* pVal)
pValINT*outコレクションに含まれる認証局の個数を受け取るポインタである。
vtbl 9 HRESULT get__NewEnum(IUnknown** pVal)
pValIUnknown**outコレクションを列挙するための列挙子(IUnknown、通常 IEnumVARIANT)を受け取るポインタである。
vtbl 10 HRESULT Add(ICertificationAuthority* pVal)
pValICertificationAuthority*inoptionalコレクションに追加する ICertificationAuthority オブジェクトを渡す。
vtbl 11 HRESULT Remove(INT Index)
IndexINTinコレクションから削除する認証局の 0 起点のインデックスを指定する。
vtbl 12 HRESULT Clear()
vtbl 13 HRESULT ComputeSiteCosts()
vtbl 14 HRESULT get_ItemByName(LPWSTR strName, ICertificationAuthority** ppValue)
strNameLPWSTRin取得する認証局の名前を文字列で指定する。
ppValueICertificationAuthority**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 不要)。