IVsDebugger::ParseFileRedirection Method (String^, String^, IntPtr, IntPtr, IntPtr)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int ParseFileRedirection(
	String^ pszArgs,
	[OutAttribute] String^% pbstrArgsProcessed,
	[OutAttribute] IntPtr% phStdInput,
	[OutAttribute] IntPtr% phStdOutput,
	[OutAttribute] IntPtr% phStdError
)

Parameters

pszArgs
Type: System::String^

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

pbstrArgsProcessed
Type: System::String^

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

phStdInput
Type: System::IntPtr

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

phStdOutput
Type: System::IntPtr

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

phStdError
Type: System::IntPtr

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

Return Value

Type: System::Int32

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

From vsshell.idl:

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