This topic has not yet been rated - Rate this topic

IVsDebugger.ParseFileRedirection Method

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,
	out string pbstrArgsProcessed,
	out IntPtr phStdInput,
	out IntPtr phStdOutput,
	out 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.

COM Signature

From vsshell.idl:

HRESULT IVsDebugger::ParseFileRedirection(
   [in] LPOLESTR pszArgs,
   [out] BSTR *pbstrArgsProcessed,
   [out] HANDLE *phStdInput,
   [out] HANDLE *phStdOutput,
   [out] HANDLE *phStdError
);
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ