ICorDebugRemote::CreateProcessEx 方法

在调试器下的远程计算机上启动进程。

Syntax

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 [in]指向以 null 结尾的字符串的指针,该字符串指定进程当前目录的完整路径。 如果此参数为 null,则新进程将具有与调用进程相同的当前驱动器和目录。

lpStartupInfo [in]未用于远程调试。

lpProcessInformation [in]未用于远程调试。

debuggingFlags [in]未用于远程调试。

ppProcess [out]指向表示进程的“ICorDebugProcess 接口”对象的地址的指针。

返回值

S_OK已成功在远程计算机上启动进程,并返回用于调试的“ICorDebugProcess 接口”。

E_FAIL(或其他E_返回代码)无法在远程计算机上启动进程,并返回用于调试的“ICorDebugProcess 接口”。

注解

Silverlight 不支持混合模式调试。

要求

平台: 请参阅 .NET 支持的作系统

页眉: CorDebug.idl

图书馆: CorGuids.lib

.NET 版本: 4.5、4、3.5 SP1

另请参阅