IVsSolutionBuildManager2::FindActiveProjectCfg Method (IntPtr, IntPtr, IVsHierarchy^, array<IVsProjectCfg^>^)

 

Determines the project configuration that is currently active.

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

int FindActiveProjectCfg(
	IntPtr pvReserved1,
	IntPtr pvReserved2,
	IVsHierarchy^ pIVsHierarchy_RequestedProject,
	array<IVsProjectCfg^>^ ppIVsProjectCfg_Active
)

Parameters

pvReserved1
Type: System::IntPtr

[in] Reserved. Must be null.

pvReserved2
Type: System::IntPtr

[in] Reserved. Must be null.

pIVsHierarchy_RequestedProject
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[in] Pointer to an IVsHierarchy_RequestedProject object.

ppIVsProjectCfg_Active
Type: array<Microsoft.VisualStudio.Shell.Interop::IVsProjectCfg^>^

[out] Pointer to a pointer to an IVsProjectCfg_Active object.

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsSolutionBuildManager2::FindActiveProjectCfg(
   [in, unique] IVsHierarchy *pvReserved1,
   [in, unique] LPCOLESTR pvReserved2,
   [in, unique] IVsHierarchy *pIVsHierarchy_RequestedProject,
   [out, optional] IVsProjectCfg **ppIVsProjectCfg_Active
);
Return to top
Show: