ホーム › Storage.FileServerResourceManager › IFsrmQuotaManager
IFsrmQuotaManager
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 12
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| variables | SAFEARRAY** | out | アクションで使用可能な置換変数の一覧を表す SAFEARRAY を受け取るポインタである。 |
| descriptions | SAFEARRAY** | out | 各アクション変数の説明の一覧を表す SAFEARRAY を受け取るポインタである。 |
vtbl 9 HRESULT CreateQuota(LPWSTR path, IFsrmQuota** quota)
| path | LPWSTR | in | クォータを作成する対象フォルダーのパスを指定する文字列へのポインタである。 |
| quota | IFsrmQuota** | out | 作成された IFsrmQuota インターフェイスを受け取るポインタである。 |
vtbl 10 HRESULT CreateAutoApplyQuota(LPWSTR quotaTemplateName, LPWSTR path, IFsrmAutoApplyQuota** quota)
| quotaTemplateName | LPWSTR | in | 自動適用クォータの基とするテンプレート名を指定する文字列へのポインタである。 |
| path | LPWSTR | in | 自動適用クォータを作成する対象フォルダーのパスを指定する文字列へのポインタである。 |
| quota | IFsrmAutoApplyQuota** | out | 作成された IFsrmAutoApplyQuota インターフェイスを受け取るポインタである。 |
vtbl 11 HRESULT GetQuota(LPWSTR path, IFsrmQuota** quota)
| path | LPWSTR | in | クォータを取得する対象フォルダーのパスを指定する文字列へのポインタである。 |
| quota | IFsrmQuota** | out | 指定パスの IFsrmQuota インターフェイスを受け取るポインタである。 |
vtbl 12 HRESULT GetAutoApplyQuota(LPWSTR path, IFsrmAutoApplyQuota** quota)
| path | LPWSTR | in | 自動適用クォータを取得する対象フォルダーのパスを指定する文字列へのポインタである。 |
| quota | IFsrmAutoApplyQuota** | out | 指定パスの IFsrmAutoApplyQuota インターフェイスを受け取るポインタである。 |
vtbl 13 HRESULT GetRestrictiveQuota(LPWSTR path, IFsrmQuota** quota)
| path | LPWSTR | in | 対象フォルダーに適用される最も制限の厳しいクォータを取得する対象パスを指定する文字列へのポインタである。 |
| quota | IFsrmQuota** | out | 最も制限の厳しい IFsrmQuota インターフェイスを受け取るポインタである。 |
vtbl 14 HRESULT EnumQuotas(LPWSTR path, FsrmEnumOptions options, IFsrmCommittableCollection** quotas)
| path | LPWSTR | in | クォータを列挙する起点となるフォルダーのパスを指定する文字列へのポインタである。 |
| options | FsrmEnumOptions | in | 列挙の動作を制御するオプション(FsrmEnumOptions)を指定する。 |
| quotas | IFsrmCommittableCollection** | out | 列挙されたクォータの一覧(IFsrmCommittableCollection)を受け取るポインタである。 |
vtbl 15 HRESULT EnumAutoApplyQuotas(LPWSTR path, FsrmEnumOptions options, IFsrmCommittableCollection** quotas)
| path | LPWSTR | in | 自動適用クォータを列挙する起点となるフォルダーのパスを指定する文字列へのポインタである。 |
| options | FsrmEnumOptions | in | 列挙の動作を制御するオプション(FsrmEnumOptions)を指定する。 |
| quotas | IFsrmCommittableCollection** | out | 列挙された自動適用クォータの一覧(IFsrmCommittableCollection)を受け取るポインタである。 |
vtbl 16 HRESULT EnumEffectiveQuotas(LPWSTR path, FsrmEnumOptions options, IFsrmCommittableCollection** quotas)
| path | LPWSTR | in | 有効なクォータを列挙する起点となるフォルダーのパスを指定する文字列へのポインタである。 |
| options | FsrmEnumOptions | in | 列挙の動作を制御するオプション(FsrmEnumOptions)を指定する。 |
| quotas | IFsrmCommittableCollection** | out | 列挙された有効なクォータの一覧(IFsrmCommittableCollection)を受け取るポインタである。 |
| strPath | LPWSTR | in | クォータの使用状況を再スキャンする対象フォルダーのパスを指定する文字列へのポインタである。 |
vtbl 18 HRESULT CreateQuotaCollection(IFsrmCommittableCollection** collection)
| collection | IFsrmCommittableCollection** | out | 新しく作成された空の IFsrmCommittableCollection を受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IFsrmQuotaManager "{8BB68C7D-19D8-4FFB-809E-BE4FC1734014}" #usecom global IFsrmQuotaManager IID_IFsrmQuotaManager "{90DCAB7F-347C-4BFC-B543-540326305FBE}" #comfunc global IFsrmQuotaManager_get_ActionVariables 7 var #comfunc global IFsrmQuotaManager_get_ActionVariableDescriptions 8 var #comfunc global IFsrmQuotaManager_CreateQuota 9 wstr,sptr #comfunc global IFsrmQuotaManager_CreateAutoApplyQuota 10 wstr,wstr,sptr #comfunc global IFsrmQuotaManager_GetQuota 11 wstr,sptr #comfunc global IFsrmQuotaManager_GetAutoApplyQuota 12 wstr,sptr #comfunc global IFsrmQuotaManager_GetRestrictiveQuota 13 wstr,sptr #comfunc global IFsrmQuotaManager_EnumQuotas 14 wstr,int,sptr #comfunc global IFsrmQuotaManager_EnumAutoApplyQuotas 15 wstr,int,sptr #comfunc global IFsrmQuotaManager_EnumEffectiveQuotas 16 wstr,int,sptr #comfunc global IFsrmQuotaManager_Scan 17 wstr #comfunc global IFsrmQuotaManager_CreateQuotaCollection 18 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IFsrmQuotaManager "{8BB68C7D-19D8-4FFB-809E-BE4FC1734014}" #usecom global IFsrmQuotaManager IID_IFsrmQuotaManager "{90DCAB7F-347C-4BFC-B543-540326305FBE}" #comfunc global IFsrmQuotaManager_get_ActionVariables 7 sptr #comfunc global IFsrmQuotaManager_get_ActionVariableDescriptions 8 sptr #comfunc global IFsrmQuotaManager_CreateQuota 9 wstr,sptr #comfunc global IFsrmQuotaManager_CreateAutoApplyQuota 10 wstr,wstr,sptr #comfunc global IFsrmQuotaManager_GetQuota 11 wstr,sptr #comfunc global IFsrmQuotaManager_GetAutoApplyQuota 12 wstr,sptr #comfunc global IFsrmQuotaManager_GetRestrictiveQuota 13 wstr,sptr #comfunc global IFsrmQuotaManager_EnumQuotas 14 wstr,int,sptr #comfunc global IFsrmQuotaManager_EnumAutoApplyQuotas 15 wstr,int,sptr #comfunc global IFsrmQuotaManager_EnumEffectiveQuotas 16 wstr,int,sptr #comfunc global IFsrmQuotaManager_Scan 17 wstr #comfunc global IFsrmQuotaManager_CreateQuotaCollection 18 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。