IVsRegisterNewDialogFilters::RegisterNewProjectDialogFilter Method (IVsFilterNewProjectDlg^, UInt32)

 

Registers a new filter for the Add New Project dialog.

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

int RegisterNewProjectDialogFilter(
	IVsFilterNewProjectDlg^ pFilter,
	[OutAttribute] unsigned int% pdwFilterCookie
)

Parameters

pFilter
Type: Microsoft.VisualStudio.Shell.Interop::IVsFilterNewProjectDlg^

[in] Pointer to an IVsFilterNewProjectDlg interface representing the filter to register.

pdwFilterCookie
Type: System::UInt32

[out] Pointer to an integer containing a VSCOOKIE uniquely identifying the filter just registered. Needed for the UnregisterNewProjectDialogFilter method.

Return Value

Type: System::Int32

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

Return to top
Show: