ICorDebugRemote::CreateProcessEx 方法

在偵錯工具的遠端電腦啟動流程。

語法

HRESULT CreateProcessEx (  
    [in]  ICorDebugRemoteTarget*      pRemoteTarget,  
    [in]  LPCWSTR                     lpApplicationName,  
    [in]  LPWSTR                      lpCommandLine,  
    [in]  LPSECURITY_ATTRIBUTES       lpProcessAttributes,  
    [in]  LPSECURITY_ATTRIBUTES       lpThreadAttributes,  
    [in]  BOOL                        bInheritHandles,  
    [in]  DWORD                       dwCreationFlags,  
    [in]  PVOID                       lpEnvironment,  
    [in]  LPCWSTR                     lpCurrentDirectory,  
    [in]  LPSTARTUPINFOW              lpStartupInfo,  
    [in]  LPPROCESS_INFORMATION       lpProcessInformation,  
    [in]  CorDebugCreateProcessFlags  debuggingFlags,  
    [out] ICorDebugProcess**          ppProcess  
);  

參數

pRemoteTarget
[in] ICorDebugRemoteTarget 介面 的指標。 用來判斷要啟動流程的遠端電腦。

lpApplicationName
[in] null 終止字串指標,指定要由已啟動流程執行的模組。 模組會在呼叫中處理序的安全性內容執行。

lpCommandLine
[in] null 終止字串指標,指定要由已啟動流程執行的命令列。

lpProcessAttributes
[in] 遠端偵錯未使用。

lpThreadAttributes
[in] 遠端偵錯未使用。

bInheritHandles
[in] 遠端偵錯未使用。

dwCreationFlags
[in] 遠端偵錯未使用。

lpEnvironment
[in] 新流程的環境區塊指標。

lpCurrentDirectory
[輸入] null 終止字串指標,此字串指定處理序目前目錄的完整路徑。 若此參數為 null,新流程的目前磁碟機與目錄將等同呼叫流程。

lpStartupInfo
[in] 遠端偵錯未使用。

lpProcessInformation
[in] 遠端偵錯未使用。

debuggingFlags
[in] 遠端偵錯未使用。

ppProcess
[out] 代表流程的「ICorDebugProcess 介面」物件的位址指標,代表流程。

傳回值

S_OK
已成功在遠端電腦啟動流程,並傳回「ICorDebugProcess 介面」以進行偵錯。

E_FAIL (或其他 E_ 傳回碼)
無法在遠端電腦啟動流程並傳回「ICorDebugProcess 介面」以進行偵錯。

備註

Silverlight 不支援混合模式偵錯。

規格需求

平台:請參閱系統需求

標頭:CorDebug.idl

程式庫:CorGuids.lib

.NET Framework版本:4.5、4、3.5 SP1

另請參閱