Partager via


IVsQueryDebuggableProjectCfg.QueryDebugTargets Method

Returns information about a project's debugging targets.

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

Syntax

'Declaration
Function QueryDebugTargets ( _
    grfLaunch As UInteger, _
    cTargets As UInteger, _
    <OutAttribute> rgDebugTargetInfo As VsDebugTargetInfo2(), _
    <OutAttribute> pcActual As UInteger() _
) As Integer
int QueryDebugTargets(
    uint grfLaunch,
    uint cTargets,
    VsDebugTargetInfo2[] rgDebugTargetInfo,
    uint[] pcActual
)
int QueryDebugTargets(
    [InAttribute] unsigned int grfLaunch, 
    [InAttribute] unsigned int cTargets, 
    [OutAttribute] array<VsDebugTargetInfo2>^ rgDebugTargetInfo, 
    [OutAttribute] array<unsigned int>^ pcActual
)
abstract QueryDebugTargets : 
        grfLaunch:uint32 * 
        cTargets:uint32 * 
        rgDebugTargetInfo:VsDebugTargetInfo2[] byref * 
        pcActual:uint32[] byref -> int
function QueryDebugTargets(
    grfLaunch : uint, 
    cTargets : uint, 
    rgDebugTargetInfo : VsDebugTargetInfo2[], 
    pcActual : uint[]
) : int

Parameters

  • grfLaunch
    Type: UInt32

    [in] Integer containing bit flags representing options for launching the debugger. Constructed from values in the __VSDBGLAUNCHFLAGS enumeration.

  • cTargets
    Type: UInt32

    [in] Integer. The maximum number of debug targets—the length of the rgDebugTargetInfo array.

  • pcActual
    Type: array<UInt32[]

    [out] Pointer to an integer. The number of debug targets found and returned in rgDebugTargetInfo.

Return Value

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

Remarks

COM Signature

From vsshell80.idl:

[C++]

HRESULT IVsQueryDebuggableProjectCfg::QueryDebugTargets(
   [in] VSDBGLAUNCHFLAGS grfLaunch, 
   [in] ULONG cTargets, 
   [in, out, size_is(cTargets)] VsDebugTargetInfo2 rgDebugTargetInfo[], 
   [out, optional] ULONG *pcActual
);

.NET Framework Security

See Also

Reference

IVsQueryDebuggableProjectCfg Interface

Microsoft.VisualStudio.Shell.Interop Namespace