Win32 API 日本語リファレンス
ホームStorage.FileServerResourceManager › IFsrmActionCommand

IFsrmActionCommand

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IID12937789-e247-4917-9c20-f3ee9c7ee783継承元IFsrmAction呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl12

メソッド 14

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

vtbl 12 HRESULT get_ExecutablePath(LPWSTR* executablePath)
executablePathLPWSTR*out実行する実行可能ファイルのパス文字列を受け取るポインタである。
vtbl 13 HRESULT put_ExecutablePath(LPWSTR executablePath)
executablePathLPWSTRin設定する実行可能ファイルのパスを指定するポインタである。
vtbl 14 HRESULT get_Arguments(LPWSTR* arguments)
argumentsLPWSTR*out実行時に渡すコマンドライン引数の文字列を受け取るポインタである。
vtbl 15 HRESULT put_Arguments(LPWSTR arguments)
argumentsLPWSTRin設定するコマンドライン引数を指定するポインタである。
vtbl 16 HRESULT get_Account(FsrmAccountType* account)
accountFsrmAccountType*outコマンドを実行するアカウントの種類(FsrmAccountType)を受け取るポインタである。
vtbl 17 HRESULT put_Account(FsrmAccountType account)
accountFsrmAccountTypeinコマンドを実行するアカウントの種類(FsrmAccountType)を指定する。
vtbl 18 HRESULT get_WorkingDirectory(LPWSTR* workingDirectory)
workingDirectoryLPWSTR*outコマンド実行時の作業ディレクトリのパス文字列を受け取るポインタである。
vtbl 19 HRESULT put_WorkingDirectory(LPWSTR workingDirectory)
workingDirectoryLPWSTRin設定する作業ディレクトリのパスを指定するポインタである。
vtbl 20 HRESULT get_MonitorCommand(VARIANT_BOOL* monitorCommand)
monitorCommandVARIANT_BOOL*outコマンドの実行を監視するかどうかを受け取る VARIANT_BOOL へのポインタである。
vtbl 21 HRESULT put_MonitorCommand(VARIANT_BOOL monitorCommand)
monitorCommandVARIANT_BOOLinコマンドの実行を監視するかどうかを指定する VARIANT_BOOL である。
vtbl 22 HRESULT get_KillTimeOut(INT* minutes)
minutesINT*outコマンドを強制終了するまでのタイムアウトを分単位で受け取るポインタである。
vtbl 23 HRESULT put_KillTimeOut(INT minutes)
minutesINTinコマンドを強制終了するまでのタイムアウトを分単位で指定する。
vtbl 24 HRESULT get_LogResult(VARIANT_BOOL* logResults)
logResultsVARIANT_BOOL*outコマンドの実行結果をログに記録するかどうかを受け取る VARIANT_BOOL へのポインタである。
vtbl 25 HRESULT put_LogResult(VARIANT_BOOL logResults)
logResultsVARIANT_BOOLinコマンドの実行結果をログに記録するかどうかを指定する VARIANT_BOOL である。

HSP用 COM定義

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

出力引数:
#define global IID_IFsrmActionCommand "{12937789-E247-4917-9C20-F3EE9C7EE783}"
#usecom global IFsrmActionCommand IID_IFsrmActionCommand "{}"
#comfunc global IFsrmActionCommand_get_ExecutablePath    12 var
#comfunc global IFsrmActionCommand_put_ExecutablePath    13 wstr
#comfunc global IFsrmActionCommand_get_Arguments         14 var
#comfunc global IFsrmActionCommand_put_Arguments         15 wstr
#comfunc global IFsrmActionCommand_get_Account           16 var
#comfunc global IFsrmActionCommand_put_Account           17 int
#comfunc global IFsrmActionCommand_get_WorkingDirectory  18 var
#comfunc global IFsrmActionCommand_put_WorkingDirectory  19 wstr
#comfunc global IFsrmActionCommand_get_MonitorCommand    20 var
#comfunc global IFsrmActionCommand_put_MonitorCommand    21 int
#comfunc global IFsrmActionCommand_get_KillTimeOut       22 var
#comfunc global IFsrmActionCommand_put_KillTimeOut       23 int
#comfunc global IFsrmActionCommand_get_LogResult         24 var
#comfunc global IFsrmActionCommand_put_LogResult         25 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。