IVsQueryDebuggableProjectCfg.QueryDebugTargets Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns information about a project's debugging targets.
int QueryDebugTargets(unsigned int grfLaunch, unsigned int cTargets, std::Array <Microsoft::VisualStudio::Shell::Interop::VsDebugTargetInfo2> const & rgDebugTargetInfo, std::Array <unsigned int> const & pcActual);
public int QueryDebugTargets (uint grfLaunch, uint cTargets, Microsoft.VisualStudio.Shell.Interop.VsDebugTargetInfo2[] rgDebugTargetInfo, uint[] pcActual);
abstract member QueryDebugTargets : uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.VsDebugTargetInfo2[] * uint32[] -> int
Public Function QueryDebugTargets (grfLaunch As UInteger, cTargets As UInteger, rgDebugTargetInfo As VsDebugTargetInfo2(), Optional pcActual As UInteger()) As Integer
Parameters
- grfLaunch
- UInt32
[in] Integer containing bit flags representing options for launching the debugger. Constructed from values in the __VSDBGLAUNCHFLAGS enumeration.
- cTargets
- UInt32
[in] Integer. The maximum number of debug targets—the length of the rgDebugTargetInfo
array.
- rgDebugTargetInfo
- VsDebugTargetInfo2[]
[out] Array of VsDebugTargetInfo2 structures representing debug targets.
- pcActual
- UInt32[]
[out] Pointer to an integer. The number of debug targets found and returned in rgDebugTargetInfo
.
Returns
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
);