This documentation is archived and is not being maintained.

IVsRegisterNewDialogFilters.RegisterNewProjectDialogFilter Method

Registers a new filter for the AddNewProject dialog.

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

int RegisterNewProjectDialogFilter (
	[InAttribute] IVsFilterNewProjectDlg pFilter,
	out uint pdwFilterCookie
int RegisterNewProjectDialogFilter (
	/** @attribute InAttribute() */ IVsFilterNewProjectDlg pFilter, 
	/** @attribute OutAttribute() */ /** @ref */ UInt32 pdwFilterCookie
JScript does not support passing value-type arguments by reference.



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


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

Return Value

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