This documentation is archived and is not being maintained.

IVsSolution.GetProjectTypeGuid Method

Returns the project type, given a GUID.

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

int GetProjectTypeGuid (
	[InAttribute] uint dwReserved,
	[InAttribute] string pszMkProject,
	out Guid pguidProjectType
int GetProjectTypeGuid (
	/** @attribute InAttribute() */ UInt32 dwReserved, 
	/** @attribute InAttribute() */ String pszMkProject, 
	/** @attribute OutAttribute() */ /** @ref */ Guid pguidProjectType
JScript does not support passing value-type arguments by reference.



[in] Reserved for future use.


[in] Pointer to the path of the project.


[out, retval] Pointer to the project type.

Return Value

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

COM Signature

From vsshell.idl:

HRESULT IVsSolution::GetProjectTypeGuid(
   [in] DWORD dwReserved,
   [in] LPCOLESTR pszMkProject,
   [out, retval] GUID *pguidProjectType