ISCluster
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IIDf2e606e4-2631-11d1-89f1-00a0c90d061e継承元IDispatch呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl7
メソッド 21
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| ppProperties | ISClusProperties** | out | クラスターの共通プロパティコレクションを表すISClusPropertiesを受け取る出力ポインタ。 |
| ppProperties | ISClusProperties** | out | クラスターのプライベートプロパティコレクションを表すISClusPropertiesを受け取る出力ポインタ。 |
| phandle | UINT_PTR* | out | クラスターのネイティブハンドルを受け取る出力ポインタ。 |
| bstrClusterName | LPWSTR | in | 接続して開く対象クラスターの名前文字列。 |
| pbstrName | LPWSTR* | out | クラスター名を受け取る出力ポインタ。BSTRとして解放する。 |
| bstrClusterName | LPWSTR | in | クラスターに設定する新しい名前文字列。 |
| ppClusVersion | ISClusVersion** | out | クラスターのバージョン情報を表すISClusVersionを受け取る出力ポインタ。 |
| pClusterResource | ISClusResource* | in | クォーラムとして設定するリソースを表すISClusResourceポインタ。 |
| pClusterResource | ISClusResource** | out | 現在のクォーラムリソースを表すISClusResourceを受け取る出力ポインタ。 |
| pnLogSize | INT* | out | クォーラムログの最大サイズ(KB単位)を受け取る出力ポインタ。 |
| nLogSize | INT | in | 設定するクォーラムログの最大サイズ(KB単位)。 |
| ppPath | LPWSTR* | out | クォーラムログファイルのパスを受け取る出力ポインタ。BSTRとして解放する。 |
| pPath | LPWSTR | in | 設定するクォーラムログファイルのパス文字列。 |
| ppNodes | ISClusNodes** | out | クラスター内のノードコレクションを表すISClusNodesを受け取る出力ポインタ。 |
| ppClusterResourceGroups | ISClusResGroups** | out | クラスターのリソースグループコレクションを表すISClusResGroupsを受け取る出力ポインタ。 |
| ppClusterResources | ISClusResources** | out | クラスターのリソースコレクションを表すISClusResourcesを受け取る出力ポインタ。 |
| ppResourceTypes | ISClusResTypes** | out | クラスターのリソースタイプコレクションを表すISClusResTypesを受け取る出力ポインタ。 |
| ppNetworks | ISClusNetworks** | out | クラスターのネットワークコレクションを表すISClusNetworksを受け取る出力ポインタ。 |
| ppNetInterfaces | ISClusNetInterfaces** | out | クラスターのネットワークインターフェイスコレクションを表すISClusNetInterfacesを受け取る出力ポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISCluster "{F2E606E4-2631-11D1-89F1-00A0C90D061E}"
#usecom global ISCluster IID_ISCluster "{}"
#comfunc global ISCluster_get_CommonProperties 7 sptr
#comfunc global ISCluster_get_PrivateProperties 8 sptr
#comfunc global ISCluster_get_CommonROProperties 9 sptr
#comfunc global ISCluster_get_PrivateROProperties 10 sptr
#comfunc global ISCluster_get_Handle 11 var
#comfunc global ISCluster_Open 12 wstr
#comfunc global ISCluster_get_Name 13 var
#comfunc global ISCluster_put_Name 14 wstr
#comfunc global ISCluster_get_Version 15 sptr
#comfunc global ISCluster_put_QuorumResource 16 sptr
#comfunc global ISCluster_get_QuorumResource 17 sptr
#comfunc global ISCluster_get_QuorumLogSize 18 var
#comfunc global ISCluster_put_QuorumLogSize 19 int
#comfunc global ISCluster_get_QuorumPath 20 var
#comfunc global ISCluster_put_QuorumPath 21 wstr
#comfunc global ISCluster_get_Nodes 22 sptr
#comfunc global ISCluster_get_ResourceGroups 23 sptr
#comfunc global ISCluster_get_Resources 24 sptr
#comfunc global ISCluster_get_ResourceTypes 25 sptr
#comfunc global ISCluster_get_Networks 26 sptr
#comfunc global ISCluster_get_NetInterfaces 27 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ISCluster "{F2E606E4-2631-11D1-89F1-00A0C90D061E}"
#usecom global ISCluster IID_ISCluster "{}"
#comfunc global ISCluster_get_CommonProperties 7 sptr
#comfunc global ISCluster_get_PrivateProperties 8 sptr
#comfunc global ISCluster_get_CommonROProperties 9 sptr
#comfunc global ISCluster_get_PrivateROProperties 10 sptr
#comfunc global ISCluster_get_Handle 11 sptr
#comfunc global ISCluster_Open 12 wstr
#comfunc global ISCluster_get_Name 13 sptr
#comfunc global ISCluster_put_Name 14 wstr
#comfunc global ISCluster_get_Version 15 sptr
#comfunc global ISCluster_put_QuorumResource 16 sptr
#comfunc global ISCluster_get_QuorumResource 17 sptr
#comfunc global ISCluster_get_QuorumLogSize 18 sptr
#comfunc global ISCluster_put_QuorumLogSize 19 int
#comfunc global ISCluster_get_QuorumPath 20 sptr
#comfunc global ISCluster_put_QuorumPath 21 wstr
#comfunc global ISCluster_get_Nodes 22 sptr
#comfunc global ISCluster_get_ResourceGroups 23 sptr
#comfunc global ISCluster_get_Resources 24 sptr
#comfunc global ISCluster_get_ResourceTypes 25 sptr
#comfunc global ISCluster_get_Networks 26 sptr
#comfunc global ISCluster_get_NetInterfaces 27 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。