Win32 API 日本語リファレンス
ホームSystem.Performance › IConfigurationDataCollector

IConfigurationDataCollector

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IID03837514-098b-11d8-9414-505054503030継承元IDataCollector呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl32

メソッド 18

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

vtbl 32 HRESULT get_FileMaxCount(DWORD* count)
countDWORD*out現在の収集するファイルの最大数を受け取るポインタである。
vtbl 33 HRESULT put_FileMaxCount(DWORD count)
countDWORDin収集するファイルの最大数を設定する。
vtbl 34 HRESULT get_FileMaxRecursiveDepth(DWORD* depth)
depthDWORD*out現在のファイル収集時の最大再帰深さを受け取るポインタである。
vtbl 35 HRESULT put_FileMaxRecursiveDepth(DWORD depth)
depthDWORDinファイル収集時の最大再帰深さを設定する。
vtbl 36 HRESULT get_FileMaxTotalSize(DWORD* size)
sizeDWORD*out現在の収集ファイルの合計最大サイズを受け取るポインタである。
vtbl 37 HRESULT put_FileMaxTotalSize(DWORD size)
sizeDWORDin収集ファイルの合計最大サイズを設定する。
vtbl 38 HRESULT get_Files(SAFEARRAY** Files)
FilesSAFEARRAY**out現在の収集対象ファイルの一覧を受け取るポインタである。
vtbl 39 HRESULT put_Files(SAFEARRAY* Files)
FilesSAFEARRAY*in収集対象ファイルの一覧を設定する。
vtbl 40 HRESULT get_ManagementQueries(SAFEARRAY** Queries)
QueriesSAFEARRAY**out現在の実行する WMI 管理クエリの一覧を受け取るポインタである。
vtbl 41 HRESULT put_ManagementQueries(SAFEARRAY* Queries)
QueriesSAFEARRAY*in実行する WMI 管理クエリの一覧を設定する。
vtbl 42 HRESULT get_QueryNetworkAdapters(VARIANT_BOOL* network)
networkVARIANT_BOOL*out現在のネットワークアダプターを照会するかどうかを受け取るポインタである。
vtbl 43 HRESULT put_QueryNetworkAdapters(VARIANT_BOOL network)
networkVARIANT_BOOLinネットワークアダプターを照会するかどうかを設定する。
vtbl 44 HRESULT get_RegistryKeys(SAFEARRAY** query)
querySAFEARRAY**out現在の収集対象のレジストリキーの一覧を受け取るポインタである。
vtbl 45 HRESULT put_RegistryKeys(SAFEARRAY* query)
querySAFEARRAY*in収集対象のレジストリキーの一覧を設定する。
vtbl 46 HRESULT get_RegistryMaxRecursiveDepth(DWORD* depth)
depthDWORD*out現在のレジストリ収集時の最大再帰深さを受け取るポインタである。
vtbl 47 HRESULT put_RegistryMaxRecursiveDepth(DWORD depth)
depthDWORDinレジストリ収集時の最大再帰深さを設定する。
vtbl 48 HRESULT get_SystemStateFile(LPWSTR* FileName)
FileNameLPWSTR*out現在のシステム状態ファイル名を受け取るポインタである。
vtbl 49 HRESULT put_SystemStateFile(LPWSTR FileName)
FileNameLPWSTRinシステム状態ファイル名を設定する。

HSP用 COM定義

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

出力引数:
#define global IID_IConfigurationDataCollector "{03837514-098B-11D8-9414-505054503030}"
#usecom global IConfigurationDataCollector IID_IConfigurationDataCollector "{}"
#comfunc global IConfigurationDataCollector_get_FileMaxCount               32 var
#comfunc global IConfigurationDataCollector_put_FileMaxCount               33 int
#comfunc global IConfigurationDataCollector_get_FileMaxRecursiveDepth      34 var
#comfunc global IConfigurationDataCollector_put_FileMaxRecursiveDepth      35 int
#comfunc global IConfigurationDataCollector_get_FileMaxTotalSize           36 var
#comfunc global IConfigurationDataCollector_put_FileMaxTotalSize           37 int
#comfunc global IConfigurationDataCollector_get_Files                      38 var
#comfunc global IConfigurationDataCollector_put_Files                      39 var
#comfunc global IConfigurationDataCollector_get_ManagementQueries          40 var
#comfunc global IConfigurationDataCollector_put_ManagementQueries          41 var
#comfunc global IConfigurationDataCollector_get_QueryNetworkAdapters       42 var
#comfunc global IConfigurationDataCollector_put_QueryNetworkAdapters       43 int
#comfunc global IConfigurationDataCollector_get_RegistryKeys               44 var
#comfunc global IConfigurationDataCollector_put_RegistryKeys               45 var
#comfunc global IConfigurationDataCollector_get_RegistryMaxRecursiveDepth  46 var
#comfunc global IConfigurationDataCollector_put_RegistryMaxRecursiveDepth  47 int
#comfunc global IConfigurationDataCollector_get_SystemStateFile            48 var
#comfunc global IConfigurationDataCollector_put_SystemStateFile            49 wstr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。