Win32 API 日本語リファレンス
ホームNetworking.Clustering › ISCluster

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。

vtbl 7 HRESULT get_CommonProperties(ISClusProperties** ppProperties)
ppPropertiesISClusProperties**outクラスターの共通プロパティコレクションを表すISClusPropertiesを受け取る出力ポインタ。
vtbl 8 HRESULT get_PrivateProperties(ISClusProperties** ppProperties)
ppPropertiesISClusProperties**outクラスターのプライベートプロパティコレクションを表すISClusPropertiesを受け取る出力ポインタ。
vtbl 9 HRESULT get_CommonROProperties(ISClusProperties** ppProperties)
ppPropertiesISClusProperties**outクラスターの読み取り専用共通プロパティコレクションを受け取る出力ポインタ。
vtbl 10 HRESULT get_PrivateROProperties(ISClusProperties** ppProperties)
ppPropertiesISClusProperties**outクラスターの読み取り専用プライベートプロパティコレクションを受け取る出力ポインタ。
vtbl 11 HRESULT get_Handle(UINT_PTR* phandle)
phandleUINT_PTR*outクラスターのネイティブハンドルを受け取る出力ポインタ。
vtbl 12 HRESULT Open(LPWSTR bstrClusterName)
bstrClusterNameLPWSTRin接続して開く対象クラスターの名前文字列。
vtbl 13 HRESULT get_Name(LPWSTR* pbstrName)
pbstrNameLPWSTR*outクラスター名を受け取る出力ポインタ。BSTRとして解放する。
vtbl 14 HRESULT put_Name(LPWSTR bstrClusterName)
bstrClusterNameLPWSTRinクラスターに設定する新しい名前文字列。
vtbl 15 HRESULT get_Version(ISClusVersion** ppClusVersion)
ppClusVersionISClusVersion**outクラスターのバージョン情報を表すISClusVersionを受け取る出力ポインタ。
vtbl 16 HRESULT put_QuorumResource(ISClusResource* pClusterResource)
pClusterResourceISClusResource*inクォーラムとして設定するリソースを表すISClusResourceポインタ。
vtbl 17 HRESULT get_QuorumResource(ISClusResource** pClusterResource)
pClusterResourceISClusResource**out現在のクォーラムリソースを表すISClusResourceを受け取る出力ポインタ。
vtbl 18 HRESULT get_QuorumLogSize(INT* pnLogSize)
pnLogSizeINT*outクォーラムログの最大サイズ(KB単位)を受け取る出力ポインタ。
vtbl 19 HRESULT put_QuorumLogSize(INT nLogSize)
nLogSizeINTin設定するクォーラムログの最大サイズ(KB単位)。
vtbl 20 HRESULT get_QuorumPath(LPWSTR* ppPath)
ppPathLPWSTR*outクォーラムログファイルのパスを受け取る出力ポインタ。BSTRとして解放する。
vtbl 21 HRESULT put_QuorumPath(LPWSTR pPath)
pPathLPWSTRin設定するクォーラムログファイルのパス文字列。
vtbl 22 HRESULT get_Nodes(ISClusNodes** ppNodes)
ppNodesISClusNodes**outクラスター内のノードコレクションを表すISClusNodesを受け取る出力ポインタ。
vtbl 23 HRESULT get_ResourceGroups(ISClusResGroups** ppClusterResourceGroups)
ppClusterResourceGroupsISClusResGroups**outクラスターのリソースグループコレクションを表すISClusResGroupsを受け取る出力ポインタ。
vtbl 24 HRESULT get_Resources(ISClusResources** ppClusterResources)
ppClusterResourcesISClusResources**outクラスターのリソースコレクションを表すISClusResourcesを受け取る出力ポインタ。
vtbl 25 HRESULT get_ResourceTypes(ISClusResTypes** ppResourceTypes)
ppResourceTypesISClusResTypes**outクラスターのリソースタイプコレクションを表すISClusResTypesを受け取る出力ポインタ。
vtbl 26 HRESULT get_Networks(ISClusNetworks** ppNetworks)
ppNetworksISClusNetworks**outクラスターのネットワークコレクションを表すISClusNetworksを受け取る出力ポインタ。
vtbl 27 HRESULT get_NetInterfaces(ISClusNetInterfaces** ppNetInterfaces)
ppNetInterfacesISClusNetInterfaces**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 不要)。