ホーム › Security.Cryptography.Certificates › ICspStatuses
ICspStatuses
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 10
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT get_ItemByIndex(INT Index, ICspStatus** pVal)
| Index | INT | in | 取得する項目の 0 起点のインデックスを指定する。 |
| pVal | ICspStatus** | out | 指定したインデックスの ICspStatus オブジェクトを受け取るインターフェイスポインタへのポインタである。 |
| pVal | INT* | out | コレクション内の CSP 状態数を受け取る INT へのポインタである。 |
| pVal | IUnknown** | out | コレクションを反復処理するための列挙子を受け取る IUnknown インターフェイスポインタへのポインタである。 |
vtbl 10 HRESULT Add(ICspStatus* pVal)
| pVal | ICspStatus* | inoptional | コレクションに追加する ICspStatus オブジェクトへのポインタである。 |
| Index | INT | in | コレクションから削除する項目の 0 起点のインデックスを指定する。 |
vtbl 12 HRESULT Clear()
vtbl 13 HRESULT get_ItemByName(LPWSTR strCspName, LPWSTR strAlgorithmName, ICspStatus** ppValue)
| strCspName | LPWSTR | in | 取得対象の CSP 名を指定する。 |
| strAlgorithmName | LPWSTR | in | 取得対象のアルゴリズム名を指定する。 |
| ppValue | ICspStatus** | out | 条件に一致する ICspStatus オブジェクトを受け取るインターフェイスポインタへのポインタである。 |
vtbl 14 HRESULT get_ItemByOrdinal(INT Ordinal, ICspStatus** ppValue)
| Ordinal | INT | in | 取得対象の状態を識別する序数を指定する。 |
| ppValue | ICspStatus** | out | 指定した序数の ICspStatus オブジェクトを受け取るインターフェイスポインタへのポインタである。 |
vtbl 15 HRESULT get_ItemByOperations(LPWSTR strCspName, LPWSTR strAlgorithmName, AlgorithmOperationFlags Operations, ICspStatus** ppValue)
| strCspName | LPWSTR | in | 取得対象の CSP 名を指定する。 |
| strAlgorithmName | LPWSTR | in | 取得対象のアルゴリズム名を指定する。 |
| Operations | AlgorithmOperationFlags | in | 対象とする操作を指定する AlgorithmOperationFlags である。 |
| ppValue | ICspStatus** | out | 条件に一致する ICspStatus オブジェクトを受け取るインターフェイスポインタへのポインタである。 |
vtbl 16 HRESULT get_ItemByProvider(ICspStatus* pCspStatus, ICspStatus** ppValue)
| pCspStatus | ICspStatus* | inoptional | 検索条件となる ICspStatus へのポインタである。 |
| ppValue | ICspStatus** | out | 同じプロバイダーに一致する ICspStatus オブジェクトを受け取るインターフェイスポインタへのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ICspStatuses "{728AB30A-217D-11DA-B2A4-000E7BBB2B09}" #usecom global ICspStatuses IID_ICspStatuses "{}" #comfunc global ICspStatuses_get_ItemByIndex 7 int,sptr #comfunc global ICspStatuses_get_Count 8 var #comfunc global ICspStatuses_get__NewEnum 9 sptr #comfunc global ICspStatuses_Add 10 sptr #comfunc global ICspStatuses_Remove 11 int #comfunc global ICspStatuses_Clear 12 #comfunc global ICspStatuses_get_ItemByName 13 wstr,wstr,sptr #comfunc global ICspStatuses_get_ItemByOrdinal 14 int,sptr #comfunc global ICspStatuses_get_ItemByOperations 15 wstr,wstr,int,sptr #comfunc global ICspStatuses_get_ItemByProvider 16 sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ICspStatuses "{728AB30A-217D-11DA-B2A4-000E7BBB2B09}" #usecom global ICspStatuses IID_ICspStatuses "{}" #comfunc global ICspStatuses_get_ItemByIndex 7 int,sptr #comfunc global ICspStatuses_get_Count 8 sptr #comfunc global ICspStatuses_get__NewEnum 9 sptr #comfunc global ICspStatuses_Add 10 sptr #comfunc global ICspStatuses_Remove 11 int #comfunc global ICspStatuses_Clear 12 #comfunc global ICspStatuses_get_ItemByName 13 wstr,wstr,sptr #comfunc global ICspStatuses_get_ItemByOrdinal 14 int,sptr #comfunc global ICspStatuses_get_ItemByOperations 15 wstr,wstr,int,sptr #comfunc global ICspStatuses_get_ItemByProvider 16 sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。