共用方式為


IVsDebugger.ParseFileRedirection Method

Definition

Parses the command line contained in the argument string, and returns the arguments and handles to any redirected output.

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

Parameters

pszArgs
String

[in] A string containing the command line to parse.

pbstrArgsProcessed
String

[out] The command line with file directions stripped out.

phStdInput
IntPtr

nativeint

[out] A HANDLE to the standard input file, taking account of redirection.

phStdOutput
IntPtr

nativeint

[out] A HANDLE to the standard output file, taking account of redirection.

phStdError
IntPtr

nativeint

[out] A HANDLE to the standard error file, taking account of redirection.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

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

Applies to