IVsDebugger.ParseFileRedirection 方法

定义

分析参数字符串中包含的命令行,并将参数和句柄返回到任何重定向的输出。

public:
 int ParseFileRedirection(System::String ^ pszArgs, [Runtime::InteropServices::Out] System::String ^ % pbstrArgsProcessed, [Runtime::InteropServices::Out] IntPtr % phStdInput, [Runtime::InteropServices::Out] IntPtr % phStdOutput, [Runtime::InteropServices::Out] IntPtr % phStdError);
public int ParseFileRedirection (string pszArgs, out string pbstrArgsProcessed, out IntPtr phStdInput, out IntPtr phStdOutput, out IntPtr phStdError);
abstract member ParseFileRedirection : string * string * nativeint * nativeint * nativeint -> int
Public Function ParseFileRedirection (pszArgs As String, ByRef pbstrArgsProcessed As String, ByRef phStdInput As IntPtr, ByRef phStdOutput As IntPtr, ByRef phStdError As IntPtr) As Integer

参数

pszArgs
String

中包含要分析的命令行的字符串。

pbstrArgsProcessed
String

弄带有文件说明的命令行已去除。

phStdInput
IntPtr

nativeint

弄标准输入文件的句柄,使用重定向。

phStdOutput
IntPtr

nativeint

弄标准输出文件的句柄,使用重定向。

phStdError
IntPtr

nativeint

弄标准错误文件的句柄,使用重定向。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

HRESULT IVsDebugger::ParseFileRedirection(  
   [in] LPOLESTR pszArgs,  
   [out] BSTR *pbstrArgsProcessed,  
   [out] HANDLE *phStdInput,  
   [out] HANDLE *phStdOutput,  
   [out] HANDLE *phStdError  
);  

适用于