IVsSingleFileGeneratorFactory::GetDefaultGenerator Method (String^, String^)

 

Gets the default generator prog ID for a specified file.

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

int GetDefaultGenerator(
	String^ wszFilename,
	[OutAttribute] String^% pbstrGenProgID
)

Parameters

wszFilename
Type: System::String^

[in] The file for which to get the generator prog ID.

pbstrGenProgID
Type: System::String^

[out] The default generator prog ID.

Return Value

Type: System::Int32

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

From vsshell80.idl:

HRESULT GetDefaultGenerator(
   [in] LPCOLESTR wszFilename, 
   [out, retval] BSTR* pbstrGenProgID
);
Return to top
Show: