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

ISClusResType

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IIDf2e60710-2631-11d1-89f1-00a0c90d061e継承元IDispatch呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl7

メソッド 10

vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。

vtbl 7 HRESULT get_CommonProperties(ISClusProperties** ppProperties)
ppPropertiesISClusProperties**outリソース種別の共通プロパティ集合を返す出力ポインタ。読み書き可能。
vtbl 8 HRESULT get_PrivateProperties(ISClusProperties** ppProperties)
ppPropertiesISClusProperties**outリソース種別固有のプライベートプロパティ集合を返す出力ポインタ。
vtbl 9 HRESULT get_CommonROProperties(ISClusProperties** ppProperties)
ppPropertiesISClusProperties**out読み取り専用の共通プロパティ集合を返す出力ポインタ。
vtbl 10 HRESULT get_PrivateROProperties(ISClusProperties** ppProperties)
ppPropertiesISClusProperties**out読み取り専用のプライベートプロパティ集合を返す出力ポインタ。
vtbl 11 HRESULT get_Name(LPWSTR* pbstrName)
pbstrNameLPWSTR*outリソース種別名を受け取る出力BSTR文字列。解放は呼び出し側で行う。
vtbl 12 HRESULT Delete()
vtbl 13 HRESULT get_Cluster(ISCluster** ppCluster)
ppClusterISCluster**outこの種別が属するクラスターISClusterを返す出力ポインタ。
vtbl 14 HRESULT get_Resources(ISClusResTypeResources** ppClusterResTypeResources)
ppClusterResTypeResourcesISClusResTypeResources**outこの種別に属するリソース集合ISClusResTypeResourcesを返す出力ポインタ。
vtbl 15 HRESULT get_PossibleOwnerNodes(ISClusResTypePossibleOwnerNodes** ppOwnerNodes)
ppOwnerNodesISClusResTypePossibleOwnerNodes**outこの種別を実行可能なノード集合ISClusResTypePossibleOwnerNodesを返す出力ポインタ。
vtbl 16 HRESULT get_AvailableDisks(ISClusDisks** ppAvailableDisks)
ppAvailableDisksISClusDisks**outこの種別が利用可能なディスク集合ISClusDisksを返す出力ポインタ。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_ISClusResType "{F2E60710-2631-11D1-89F1-00A0C90D061E}"
#usecom global ISClusResType IID_ISClusResType "{}"
#comfunc global ISClusResType_get_CommonProperties     7 sptr
#comfunc global ISClusResType_get_PrivateProperties    8 sptr
#comfunc global ISClusResType_get_CommonROProperties   9 sptr
#comfunc global ISClusResType_get_PrivateROProperties  10 sptr
#comfunc global ISClusResType_get_Name                 11 var
#comfunc global ISClusResType_Delete                   12
#comfunc global ISClusResType_get_Cluster              13 sptr
#comfunc global ISClusResType_get_Resources            14 sptr
#comfunc global ISClusResType_get_PossibleOwnerNodes   15 sptr
#comfunc global ISClusResType_get_AvailableDisks       16 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。