ホーム › Networking.Clustering › ISClusNode
ISClusNode
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 14
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT get_CommonProperties(ISClusProperties** ppProperties)
| ppProperties | ISClusProperties** | out | ノードの共通プロパティ集合を表すISClusPropertiesを受け取る出力ポインタ。読み書き可能なコレクションを返す。 |
vtbl 8 HRESULT get_PrivateProperties(ISClusProperties** ppProperties)
| ppProperties | ISClusProperties** | out | ノード固有のプライベートプロパティ集合を返す出力ポインタ。リソース種別等に依存する値を含む。 |
vtbl 9 HRESULT get_CommonROProperties(ISClusProperties** ppProperties)
| ppProperties | ISClusProperties** | out | 読み取り専用の共通プロパティ集合を返す出力ポインタ。変更不可の状態系プロパティを取得する。 |
vtbl 10 HRESULT get_PrivateROProperties(ISClusProperties** ppProperties)
| ppProperties | ISClusProperties** | out | 読み取り専用のプライベートプロパティ集合を返す出力ポインタ。書き換え不可の固有値を保持する。 |
| pbstrName | LPWSTR* | out | ノードの名前を受け取る出力BSTR文字列。呼び出し側がSysFreeStringで解放する。 |
| phandle | UINT_PTR* | out | ネイティブのクラスターノードハンドルを受け取る出力ポインタ。UINT_PTRとして数値化された値を返す。 |
| pbstrNodeID | LPWSTR* | out | ノードを一意に識別するノードIDを受け取る出力BSTR文字列。解放は呼び出し側の責任となる。 |
vtbl 14 HRESULT get_State(CLUSTER_NODE_STATE* dwState)
| dwState | CLUSTER_NODE_STATE* | out | ノードの現在状態を受け取る出力先。CLUSTER_NODE_STATE列挙(稼働/停止/参加中等)を返す。 |
vtbl 15 HRESULT Pause()
vtbl 16 HRESULT Resume()
vtbl 17 HRESULT Evict()
vtbl 18 HRESULT get_ResourceGroups(ISClusResGroups** ppResourceGroups)
| ppResourceGroups | ISClusResGroups** | out | このノードが所有するリソースグループ集合ISClusResGroupsを返す出力ポインタ。 |
| ppCluster | ISCluster** | out | このノードが属するクラスターを表すISClusterを返す出力ポインタ。 |
vtbl 20 HRESULT get_NetInterfaces(ISClusNodeNetInterfaces** ppClusNetInterfaces)
| ppClusNetInterfaces | ISClusNodeNetInterfaces** | out | このノードのネットワークインターフェイス集合ISClusNodeNetInterfacesを返す出力ポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISClusNode "{F2E606F8-2631-11D1-89F1-00A0C90D061E}" #usecom global ISClusNode IID_ISClusNode "{}" #comfunc global ISClusNode_get_CommonProperties 7 sptr #comfunc global ISClusNode_get_PrivateProperties 8 sptr #comfunc global ISClusNode_get_CommonROProperties 9 sptr #comfunc global ISClusNode_get_PrivateROProperties 10 sptr #comfunc global ISClusNode_get_Name 11 var #comfunc global ISClusNode_get_Handle 12 var #comfunc global ISClusNode_get_NodeID 13 var #comfunc global ISClusNode_get_State 14 var #comfunc global ISClusNode_Pause 15 #comfunc global ISClusNode_Resume 16 #comfunc global ISClusNode_Evict 17 #comfunc global ISClusNode_get_ResourceGroups 18 sptr #comfunc global ISClusNode_get_Cluster 19 sptr #comfunc global ISClusNode_get_NetInterfaces 20 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ISClusNode "{F2E606F8-2631-11D1-89F1-00A0C90D061E}" #usecom global ISClusNode IID_ISClusNode "{}" #comfunc global ISClusNode_get_CommonProperties 7 sptr #comfunc global ISClusNode_get_PrivateProperties 8 sptr #comfunc global ISClusNode_get_CommonROProperties 9 sptr #comfunc global ISClusNode_get_PrivateROProperties 10 sptr #comfunc global ISClusNode_get_Name 11 sptr #comfunc global ISClusNode_get_Handle 12 sptr #comfunc global ISClusNode_get_NodeID 13 sptr #comfunc global ISClusNode_get_State 14 sptr #comfunc global ISClusNode_Pause 15 #comfunc global ISClusNode_Resume 16 #comfunc global ISClusNode_Evict 17 #comfunc global ISClusNode_get_ResourceGroups 18 sptr #comfunc global ISClusNode_get_Cluster 19 sptr #comfunc global ISClusNode_get_NetInterfaces 20 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。