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)
Syntax
'Declaration
Function ParseFileRedirection ( _
pszArgs As String, _
<OutAttribute> ByRef pbstrArgsProcessed As String, _
<OutAttribute> ByRef phStdInput As IntPtr, _
<OutAttribute> ByRef phStdOutput As IntPtr, _
<OutAttribute> ByRef phStdError As IntPtr _
) As Integer
int ParseFileRedirection(
string pszArgs,
out string pbstrArgsProcessed,
out IntPtr phStdInput,
out IntPtr phStdOutput,
out IntPtr phStdError
)
int ParseFileRedirection(
[InAttribute] String^ pszArgs,
[OutAttribute] String^% pbstrArgsProcessed,
[OutAttribute] IntPtr% phStdInput,
[OutAttribute] IntPtr% phStdOutput,
[OutAttribute] IntPtr% phStdError
)
abstract ParseFileRedirection :
pszArgs:string *
pbstrArgsProcessed:string byref *
phStdInput:IntPtr byref *
phStdOutput:IntPtr byref *
phStdError:IntPtr byref -> int
function ParseFileRedirection(
pszArgs : String,
pbstrArgsProcessed : String,
phStdInput : IntPtr,
phStdOutput : IntPtr,
phStdError : IntPtr
) : int
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.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsDebugger::ParseFileRedirection(
[in] LPOLESTR pszArgs,
[out] BSTR *pbstrArgsProcessed,
[out] HANDLE *phStdInput,
[out] HANDLE *phStdOutput,
[out] HANDLE *phStdError
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.