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

IDataCollectorSet

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

メソッド 60

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

vtbl 7 HRESULT get_DataCollectors(IDataCollectorCollection** collectors)
collectorsIDataCollectorCollection**outデータコレクターセットに含まれるデータコレクターのコレクションを受け取るポインタである。
vtbl 8 HRESULT get_Duration(DWORD* seconds)
secondsDWORD*out現在のデータコレクターセットの実行継続時間(秒)を受け取るポインタである。
vtbl 9 HRESULT put_Duration(DWORD seconds)
secondsDWORDinデータコレクターセットの実行継続時間(秒)を設定する。
vtbl 10 HRESULT get_Description(LPWSTR* description)
descriptionLPWSTR*out現在の説明文を受け取るポインタである。
vtbl 11 HRESULT put_Description(LPWSTR description)
descriptionLPWSTRin説明文を設定する。
vtbl 12 HRESULT get_DescriptionUnresolved(LPWSTR* Descr)
DescrLPWSTR*out変数展開前の説明文を受け取るポインタである。
vtbl 13 HRESULT get_DisplayName(LPWSTR* DisplayName)
DisplayNameLPWSTR*out現在の表示名を受け取るポインタである。
vtbl 14 HRESULT put_DisplayName(LPWSTR DisplayName)
DisplayNameLPWSTRin表示名を設定する。
vtbl 15 HRESULT get_DisplayNameUnresolved(LPWSTR* name)
nameLPWSTR*out変数展開前の表示名を受け取るポインタである。
vtbl 16 HRESULT get_Keywords(SAFEARRAY** keywords)
keywordsSAFEARRAY**out現在のキーワードの一覧を受け取るポインタである。
vtbl 17 HRESULT put_Keywords(SAFEARRAY* keywords)
keywordsSAFEARRAY*inキーワードの一覧を設定する。
vtbl 18 HRESULT get_LatestOutputLocation(LPWSTR* path)
pathLPWSTR*out現在の最新の出力先パスを受け取るポインタである。
vtbl 19 HRESULT put_LatestOutputLocation(LPWSTR path)
pathLPWSTRin最新の出力先パスを設定する。
vtbl 20 HRESULT get_Name(LPWSTR* name)
nameLPWSTR*out現在の名前を受け取るポインタである。
vtbl 21 HRESULT get_OutputLocation(LPWSTR* path)
pathLPWSTR*out現在の出力先パスを受け取るポインタである。
vtbl 22 HRESULT get_RootPath(LPWSTR* folder)
folderLPWSTR*out現在のルートパス(基準フォルダ)を受け取るポインタである。
vtbl 23 HRESULT put_RootPath(LPWSTR folder)
folderLPWSTRinルートパス(基準フォルダ)を設定する。
vtbl 24 HRESULT get_Segment(VARIANT_BOOL* segment)
segmentVARIANT_BOOL*out現在のセグメント分割を行うかどうかを受け取るポインタである。
vtbl 25 HRESULT put_Segment(VARIANT_BOOL segment)
segmentVARIANT_BOOLinセグメント分割を行うかどうかを設定する。
vtbl 26 HRESULT get_SegmentMaxDuration(DWORD* seconds)
secondsDWORD*out現在の1 セグメントあたりの最大継続時間(秒)を受け取るポインタである。
vtbl 27 HRESULT put_SegmentMaxDuration(DWORD seconds)
secondsDWORDin1 セグメントあたりの最大継続時間(秒)を設定する。
vtbl 28 HRESULT get_SegmentMaxSize(DWORD* size)
sizeDWORD*out現在の1 セグメントあたりの最大サイズを受け取るポインタである。
vtbl 29 HRESULT put_SegmentMaxSize(DWORD size)
sizeDWORDin1 セグメントあたりの最大サイズを設定する。
vtbl 30 HRESULT get_SerialNumber(DWORD* index)
indexDWORD*out現在のシリアル番号(インデックス)を受け取るポインタである。
vtbl 31 HRESULT put_SerialNumber(DWORD index)
indexDWORDinシリアル番号(インデックス)を設定する。
vtbl 32 HRESULT get_Server(LPWSTR* server)
serverLPWSTR*out現在のサーバー名を受け取るポインタである。
vtbl 33 HRESULT get_Status(DataCollectorSetStatus* status)
statusDataCollectorSetStatus*out現在のデータコレクターセットの状態を受け取るポインタである。
vtbl 34 HRESULT get_Subdirectory(LPWSTR* folder)
folderLPWSTR*out現在のサブディレクトリ名を受け取るポインタである。
vtbl 35 HRESULT put_Subdirectory(LPWSTR folder)
folderLPWSTRinサブディレクトリ名を設定する。
vtbl 36 HRESULT get_SubdirectoryFormat(AutoPathFormat* format)
formatAutoPathFormat*out現在のサブディレクトリ名の自動生成形式を受け取るポインタである。
vtbl 37 HRESULT put_SubdirectoryFormat(AutoPathFormat format)
formatAutoPathFormatinサブディレクトリ名の自動生成形式を設定する。
vtbl 38 HRESULT get_SubdirectoryFormatPattern(LPWSTR* pattern)
patternLPWSTR*out現在のサブディレクトリ名の生成パターンを受け取るポインタである。
vtbl 39 HRESULT put_SubdirectoryFormatPattern(LPWSTR pattern)
patternLPWSTRinサブディレクトリ名の生成パターンを設定する。
vtbl 40 HRESULT get_Task(LPWSTR* task)
taskLPWSTR*out現在の完了時に実行するタスクを受け取るポインタである。
vtbl 41 HRESULT put_Task(LPWSTR task)
taskLPWSTRin完了時に実行するタスクを設定する。
vtbl 42 HRESULT get_TaskRunAsSelf(VARIANT_BOOL* RunAsSelf)
RunAsSelfVARIANT_BOOL*out現在のタスクを自身の資格情報で実行するかどうかを受け取るポインタである。
vtbl 43 HRESULT put_TaskRunAsSelf(VARIANT_BOOL RunAsSelf)
RunAsSelfVARIANT_BOOLinタスクを自身の資格情報で実行するかどうかを設定する。
vtbl 44 HRESULT get_TaskArguments(LPWSTR* task)
taskLPWSTR*out現在のタスクに渡す引数を受け取るポインタである。
vtbl 45 HRESULT put_TaskArguments(LPWSTR task)
taskLPWSTRinタスクに渡す引数を設定する。
vtbl 46 HRESULT get_TaskUserTextArguments(LPWSTR* UserText)
UserTextLPWSTR*out現在のタスクに渡すユーザー定義テキスト引数を受け取るポインタである。
vtbl 47 HRESULT put_TaskUserTextArguments(LPWSTR UserText)
UserTextLPWSTRinタスクに渡すユーザー定義テキスト引数を設定する。
vtbl 48 HRESULT get_Schedules(IScheduleCollection** ppSchedules)
ppSchedulesIScheduleCollection**out現在のスケジュールのコレクションを受け取るポインタである。
vtbl 49 HRESULT get_SchedulesEnabled(VARIANT_BOOL* enabled)
enabledVARIANT_BOOL*out現在のスケジュールが有効かどうかを受け取るポインタである。
vtbl 50 HRESULT put_SchedulesEnabled(VARIANT_BOOL enabled)
enabledVARIANT_BOOLinスケジュールが有効かどうかを設定する。
vtbl 51 HRESULT get_UserAccount(LPWSTR* user)
userLPWSTR*out現在の実行に使用するユーザーアカウントを受け取るポインタである。
vtbl 52 HRESULT get_Xml(LPWSTR* xml)
xmlLPWSTR*out現在のXML 表現を受け取るポインタである。
vtbl 53 HRESULT get_Security(LPWSTR* pbstrSecurity)
pbstrSecurityLPWSTR*out現在のセキュリティ記述子(SDDL)を受け取るポインタである。
vtbl 54 HRESULT put_Security(LPWSTR bstrSecurity)
bstrSecurityLPWSTRin設定するセキュリティ記述子(SDDL)を指定する。
vtbl 55 HRESULT get_StopOnCompletion(VARIANT_BOOL* Stop)
StopVARIANT_BOOL*out現在の完了時に自動停止するかどうかを受け取るポインタである。
vtbl 56 HRESULT put_StopOnCompletion(VARIANT_BOOL Stop)
StopVARIANT_BOOLin完了時に自動停止するかどうかを設定する。
vtbl 57 HRESULT get_DataManager(IDataManager** DataManager)
DataManagerIDataManager**out現在のデータマネージャーを受け取るポインタである。
vtbl 58 HRESULT SetCredentials(LPWSTR user, LPWSTR password)
userLPWSTRin設定する実行ユーザー名を指定する。
passwordLPWSTRin設定するパスワードを指定する。
vtbl 59 HRESULT Query(LPWSTR name, LPWSTR server)
nameLPWSTRin読み込むデータコレクターセットの名前を指定する。
serverLPWSTRinoptional対象とするサーバー名を指定する。
vtbl 60 HRESULT Commit(LPWSTR name, LPWSTR server, CommitMode mode, IValueMap** validation)
nameLPWSTRinコミットするデータコレクターセットの名前を指定する。
serverLPWSTRinoptional対象とするサーバー名を指定する。
modeCommitModeinコミット方法を表す CommitMode を指定する。
validationIValueMap**out検証結果を表す IValueMap を受け取るポインタである。
vtbl 61 HRESULT Delete()
vtbl 62 HRESULT Start(VARIANT_BOOL Synchronous)
SynchronousVARIANT_BOOLin開始処理を同期的に行うかどうかを指定するブール値である。
vtbl 63 HRESULT Stop(VARIANT_BOOL Synchronous)
SynchronousVARIANT_BOOLin停止処理を同期的に行うかどうかを指定するブール値である。
vtbl 64 HRESULT SetXml(LPWSTR xml, IValueMap** validation)
xmlLPWSTRin設定を定義する XML 文字列を指定する。
validationIValueMap**out検証結果を表す IValueMap を受け取るポインタである。
vtbl 65 HRESULT SetValue(LPWSTR key, LPWSTR value)
keyLPWSTRin設定するユーザー定義値のキーを指定する。
valueLPWSTRin設定するユーザー定義値を指定する。
vtbl 66 HRESULT GetValue(LPWSTR key, LPWSTR* value)
keyLPWSTRin取得するユーザー定義値のキーを指定する。
valueLPWSTR*out取得したユーザー定義値を受け取るポインタである。

HSP用 COM定義

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

出力引数:
#define global IID_IDataCollectorSet "{03837520-098B-11D8-9414-505054503030}"
#usecom global IDataCollectorSet IID_IDataCollectorSet "{03837521-098B-11D8-9414-505054503030}"
#comfunc global IDataCollectorSet_get_DataCollectors             7 sptr
#comfunc global IDataCollectorSet_get_Duration                   8 var
#comfunc global IDataCollectorSet_put_Duration                   9 int
#comfunc global IDataCollectorSet_get_Description                10 var
#comfunc global IDataCollectorSet_put_Description                11 wstr
#comfunc global IDataCollectorSet_get_DescriptionUnresolved      12 var
#comfunc global IDataCollectorSet_get_DisplayName                13 var
#comfunc global IDataCollectorSet_put_DisplayName                14 wstr
#comfunc global IDataCollectorSet_get_DisplayNameUnresolved      15 var
#comfunc global IDataCollectorSet_get_Keywords                   16 var
#comfunc global IDataCollectorSet_put_Keywords                   17 var
#comfunc global IDataCollectorSet_get_LatestOutputLocation       18 var
#comfunc global IDataCollectorSet_put_LatestOutputLocation       19 wstr
#comfunc global IDataCollectorSet_get_Name                       20 var
#comfunc global IDataCollectorSet_get_OutputLocation             21 var
#comfunc global IDataCollectorSet_get_RootPath                   22 var
#comfunc global IDataCollectorSet_put_RootPath                   23 wstr
#comfunc global IDataCollectorSet_get_Segment                    24 var
#comfunc global IDataCollectorSet_put_Segment                    25 int
#comfunc global IDataCollectorSet_get_SegmentMaxDuration         26 var
#comfunc global IDataCollectorSet_put_SegmentMaxDuration         27 int
#comfunc global IDataCollectorSet_get_SegmentMaxSize             28 var
#comfunc global IDataCollectorSet_put_SegmentMaxSize             29 int
#comfunc global IDataCollectorSet_get_SerialNumber               30 var
#comfunc global IDataCollectorSet_put_SerialNumber               31 int
#comfunc global IDataCollectorSet_get_Server                     32 var
#comfunc global IDataCollectorSet_get_Status                     33 var
#comfunc global IDataCollectorSet_get_Subdirectory               34 var
#comfunc global IDataCollectorSet_put_Subdirectory               35 wstr
#comfunc global IDataCollectorSet_get_SubdirectoryFormat         36 var
#comfunc global IDataCollectorSet_put_SubdirectoryFormat         37 int
#comfunc global IDataCollectorSet_get_SubdirectoryFormatPattern  38 var
#comfunc global IDataCollectorSet_put_SubdirectoryFormatPattern  39 wstr
#comfunc global IDataCollectorSet_get_Task                       40 var
#comfunc global IDataCollectorSet_put_Task                       41 wstr
#comfunc global IDataCollectorSet_get_TaskRunAsSelf              42 var
#comfunc global IDataCollectorSet_put_TaskRunAsSelf              43 int
#comfunc global IDataCollectorSet_get_TaskArguments              44 var
#comfunc global IDataCollectorSet_put_TaskArguments              45 wstr
#comfunc global IDataCollectorSet_get_TaskUserTextArguments      46 var
#comfunc global IDataCollectorSet_put_TaskUserTextArguments      47 wstr
#comfunc global IDataCollectorSet_get_Schedules                  48 sptr
#comfunc global IDataCollectorSet_get_SchedulesEnabled           49 var
#comfunc global IDataCollectorSet_put_SchedulesEnabled           50 int
#comfunc global IDataCollectorSet_get_UserAccount                51 var
#comfunc global IDataCollectorSet_get_Xml                        52 var
#comfunc global IDataCollectorSet_get_Security                   53 var
#comfunc global IDataCollectorSet_put_Security                   54 wstr
#comfunc global IDataCollectorSet_get_StopOnCompletion           55 var
#comfunc global IDataCollectorSet_put_StopOnCompletion           56 int
#comfunc global IDataCollectorSet_get_DataManager                57 sptr
#comfunc global IDataCollectorSet_SetCredentials                 58 wstr,wstr
#comfunc global IDataCollectorSet_Query                          59 wstr,wstr
#comfunc global IDataCollectorSet_Commit                         60 wstr,wstr,int,sptr
#comfunc global IDataCollectorSet_Delete                         61
#comfunc global IDataCollectorSet_Start                          62 int
#comfunc global IDataCollectorSet_Stop                           63 int
#comfunc global IDataCollectorSet_SetXml                         64 wstr,sptr
#comfunc global IDataCollectorSet_SetValue                       65 wstr,wstr
#comfunc global IDataCollectorSet_GetValue                       66 wstr,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。