IVsDebugger::ParseFileRedirection Method (String^, String^, IntPtr, IntPtr, IntPtr)
Visual Studio 2015
Parses the command line contained in the argument string, and returns the arguments and handles to any redirected output.
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::Int32If 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
);
Show: