ホーム › Networking.Clustering › ISClusNetwork
ISClusNetwork
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 11
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 | 読み取り専用のプライベートプロパティ集合を返す出力ポインタ。 |
| phandle | UINT_PTR* | out | クラスターネットワークのネイティブハンドルをUINT_PTRとして受け取る出力ポインタ。 |
| pbstrName | LPWSTR* | out | ネットワーク名を受け取る出力BSTR文字列。解放は呼び出し側で行う。 |
| bstrNetworkName | LPWSTR | in | ネットワークに設定する新しい名前を表す入力BSTR文字列。 |
| pbstrNetworkID | LPWSTR* | out | ネットワークを一意に識別するIDを受け取る出力BSTR文字列。 |
vtbl 15 HRESULT get_State(CLUSTER_NETWORK_STATE* dwState)
| dwState | CLUSTER_NETWORK_STATE* | out | ネットワークの現在状態を受け取る出力先。CLUSTER_NETWORK_STATE列挙(利用可能/不通等)を返す。 |
vtbl 16 HRESULT get_NetInterfaces(ISClusNetworkNetInterfaces** ppClusNetInterfaces)
| ppClusNetInterfaces | ISClusNetworkNetInterfaces** | out | このネットワークに属するインターフェイス集合ISClusNetworkNetInterfacesを返す出力ポインタ。 |
| ppCluster | ISCluster** | out | このネットワークが属するクラスターISClusterを返す出力ポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISClusNetwork "{F2E606F2-2631-11D1-89F1-00A0C90D061E}" #usecom global ISClusNetwork IID_ISClusNetwork "{}" #comfunc global ISClusNetwork_get_CommonProperties 7 sptr #comfunc global ISClusNetwork_get_PrivateProperties 8 sptr #comfunc global ISClusNetwork_get_CommonROProperties 9 sptr #comfunc global ISClusNetwork_get_PrivateROProperties 10 sptr #comfunc global ISClusNetwork_get_Handle 11 var #comfunc global ISClusNetwork_get_Name 12 var #comfunc global ISClusNetwork_put_Name 13 wstr #comfunc global ISClusNetwork_get_NetworkID 14 var #comfunc global ISClusNetwork_get_State 15 var #comfunc global ISClusNetwork_get_NetInterfaces 16 sptr #comfunc global ISClusNetwork_get_Cluster 17 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ISClusNetwork "{F2E606F2-2631-11D1-89F1-00A0C90D061E}" #usecom global ISClusNetwork IID_ISClusNetwork "{}" #comfunc global ISClusNetwork_get_CommonProperties 7 sptr #comfunc global ISClusNetwork_get_PrivateProperties 8 sptr #comfunc global ISClusNetwork_get_CommonROProperties 9 sptr #comfunc global ISClusNetwork_get_PrivateROProperties 10 sptr #comfunc global ISClusNetwork_get_Handle 11 sptr #comfunc global ISClusNetwork_get_Name 12 sptr #comfunc global ISClusNetwork_put_Name 13 wstr #comfunc global ISClusNetwork_get_NetworkID 14 sptr #comfunc global ISClusNetwork_get_State 15 sptr #comfunc global ISClusNetwork_get_NetInterfaces 16 sptr #comfunc global ISClusNetwork_get_Cluster 17 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。