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

ISClusResource

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

メソッド 32

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_Handle(UINT_PTR* phandle)
phandleUINT_PTR*outリソースのネイティブハンドルをUINT_PTRとして受け取る出力ポインタ。
vtbl 12 HRESULT get_Name(LPWSTR* pbstrName)
pbstrNameLPWSTR*outリソース名を受け取る出力BSTR文字列。解放は呼び出し側で行う。
vtbl 13 HRESULT put_Name(LPWSTR bstrResourceName)
bstrResourceNameLPWSTRinリソースに設定する新しい名前を表す入力BSTR文字列。
vtbl 14 HRESULT get_State(CLUSTER_RESOURCE_STATE* dwState)
dwStateCLUSTER_RESOURCE_STATE*outリソースの現在状態を受け取る出力先。CLUSTER_RESOURCE_STATE列挙(オンライン/失敗等)を返す。
vtbl 15 HRESULT get_CoreFlag(CLUS_FLAGS* dwCoreFlag)
dwCoreFlagCLUS_FLAGS*outリソースがコア(必須)かを示すフラグを受け取る出力先。CLUS_FLAGSのビット値を返す。
vtbl 16 HRESULT BecomeQuorumResource(LPWSTR bstrDevicePath, INT lMaxLogSize)
bstrDevicePathLPWSTRinクォーラムログを格納するデバイスパスを表す入力BSTR文字列。
lMaxLogSizeINTinクォーラムログの最大サイズをバイト単位で指定する入力INT値。
vtbl 17 HRESULT Delete()
vtbl 18 HRESULT Fail()
vtbl 19 HRESULT Online(INT nTimeout, VARIANT* pvarPending)
nTimeoutINTinオンライン化完了を待つタイムアウト秒数を指定する入力INT値。0で即時返却する。
pvarPendingVARIANT*out処理が保留中かを示すVARIANTを受け取る出力先。
vtbl 20 HRESULT Offline(INT nTimeout, VARIANT* pvarPending)
nTimeoutINTinオフライン化完了を待つタイムアウト秒数を指定する入力INT値。0で即時返却する。
pvarPendingVARIANT*outオフライン化が保留中かを示すVARIANTを受け取る出力先。
vtbl 21 HRESULT ChangeResourceGroup(ISClusResGroup* pResourceGroup)
pResourceGroupISClusResGroup*inこのリソースの移動先となるリソースグループISClusResGroupを指定する入力ポインタ。
vtbl 22 HRESULT AddResourceNode(ISClusNode* pNode)
pNodeISClusNode*in可能な所有者として追加するノードISClusNodeを指定する入力ポインタ。
vtbl 23 HRESULT RemoveResourceNode(ISClusNode* pNode)
pNodeISClusNode*in可能な所有者から除外するノードISClusNodeを指定する入力ポインタ。
vtbl 24 HRESULT CanResourceBeDependent(ISClusResource* pResource, VARIANT* pvarDependent)
pResourceISClusResource*in依存可能か判定する対象のリソースISClusResourceを指定する入力ポインタ。
pvarDependentVARIANT*out依存設定が可能かを示すVARIANT(真偽値)を受け取る出力先。
vtbl 25 HRESULT get_PossibleOwnerNodes(ISClusResPossibleOwnerNodes** ppOwnerNodes)
ppOwnerNodesISClusResPossibleOwnerNodes**outこのリソースを所有可能なノード集合ISClusResPossibleOwnerNodesを返す出力ポインタ。
vtbl 26 HRESULT get_Dependencies(ISClusResDependencies** ppResDependencies)
ppResDependenciesISClusResDependencies**outこのリソースが依存する他リソースの集合ISClusResDependenciesを返す出力ポインタ。
vtbl 27 HRESULT get_Dependents(ISClusResDependents** ppResDependents)
ppResDependentsISClusResDependents**outこのリソースに依存する他リソースの集合ISClusResDependentsを返す出力ポインタ。
vtbl 28 HRESULT get_Group(ISClusResGroup** ppResGroup)
ppResGroupISClusResGroup**outこのリソースが所属するリソースグループISClusResGroupを返す出力ポインタ。
vtbl 29 HRESULT get_OwnerNode(ISClusNode** ppOwnerNode)
ppOwnerNodeISClusNode**out現在このリソースを所有するノードISClusNodeを返す出力ポインタ。
vtbl 30 HRESULT get_Cluster(ISCluster** ppCluster)
ppClusterISCluster**outこのリソースが属するクラスターISClusterを返す出力ポインタ。
vtbl 31 HRESULT get_ClassInfo(CLUSTER_RESOURCE_CLASS* prcClassInfo)
prcClassInfoCLUSTER_RESOURCE_CLASS*outリソースのクラス情報を受け取る出力先。CLUSTER_RESOURCE_CLASS列挙(ストレージ等)を返す。
vtbl 32 HRESULT get_Disk(ISClusDisk** ppDisk)
ppDiskISClusDisk**outリソースがストレージクラスの場合に対応するディスクISClusDiskを返す出力ポインタ。
vtbl 33 HRESULT get_RegistryKeys(ISClusRegistryKeys** ppRegistryKeys)
ppRegistryKeysISClusRegistryKeys**outリソースに関連付けられたレジストリチェックポイント集合ISClusRegistryKeysを返す出力ポインタ。
vtbl 34 HRESULT get_CryptoKeys(ISClusCryptoKeys** ppCryptoKeys)
ppCryptoKeysISClusCryptoKeys**outリソースに関連付けられた暗号鍵チェックポイント集合ISClusCryptoKeysを返す出力ポインタ。
vtbl 35 HRESULT get_TypeName(LPWSTR* pbstrTypeName)
pbstrTypeNameLPWSTR*outリソース種別の名前を受け取る出力BSTR文字列。解放は呼び出し側で行う。
vtbl 36 HRESULT get_Type(ISClusResType** ppResourceType)
ppResourceTypeISClusResType**outこのリソースの種別を表すISClusResTypeを返す出力ポインタ。
vtbl 37 HRESULT get_MaintenanceMode(BOOL* pbMaintenanceMode)
pbMaintenanceModeBOOL*out保守モードの有効状態を受け取る出力BOOL。監視を一時停止中ならTRUEを返す。
vtbl 38 HRESULT put_MaintenanceMode(BOOL bMaintenanceMode)
bMaintenanceModeBOOLin保守モードの有効/無効を指定する入力BOOL。TRUEで監視を一時停止する。

HSP用 COM定義

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

出力引数:
#define global IID_ISClusResource "{F2E6070A-2631-11D1-89F1-00A0C90D061E}"
#usecom global ISClusResource IID_ISClusResource "{}"
#comfunc global ISClusResource_get_CommonProperties     7 sptr
#comfunc global ISClusResource_get_PrivateProperties    8 sptr
#comfunc global ISClusResource_get_CommonROProperties   9 sptr
#comfunc global ISClusResource_get_PrivateROProperties  10 sptr
#comfunc global ISClusResource_get_Handle               11 var
#comfunc global ISClusResource_get_Name                 12 var
#comfunc global ISClusResource_put_Name                 13 wstr
#comfunc global ISClusResource_get_State                14 var
#comfunc global ISClusResource_get_CoreFlag             15 var
#comfunc global ISClusResource_BecomeQuorumResource     16 wstr,int
#comfunc global ISClusResource_Delete                   17
#comfunc global ISClusResource_Fail                     18
#comfunc global ISClusResource_Online                   19 int,var
#comfunc global ISClusResource_Offline                  20 int,var
#comfunc global ISClusResource_ChangeResourceGroup      21 sptr
#comfunc global ISClusResource_AddResourceNode          22 sptr
#comfunc global ISClusResource_RemoveResourceNode       23 sptr
#comfunc global ISClusResource_CanResourceBeDependent   24 sptr,var
#comfunc global ISClusResource_get_PossibleOwnerNodes   25 sptr
#comfunc global ISClusResource_get_Dependencies         26 sptr
#comfunc global ISClusResource_get_Dependents           27 sptr
#comfunc global ISClusResource_get_Group                28 sptr
#comfunc global ISClusResource_get_OwnerNode            29 sptr
#comfunc global ISClusResource_get_Cluster              30 sptr
#comfunc global ISClusResource_get_ClassInfo            31 var
#comfunc global ISClusResource_get_Disk                 32 sptr
#comfunc global ISClusResource_get_RegistryKeys         33 sptr
#comfunc global ISClusResource_get_CryptoKeys           34 sptr
#comfunc global ISClusResource_get_TypeName             35 var
#comfunc global ISClusResource_get_Type                 36 sptr
#comfunc global ISClusResource_get_MaintenanceMode      37 var
#comfunc global ISClusResource_put_MaintenanceMode      38 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。