IVsTaskProvider3::GetProviderToolbar Method (Guid, UInt32)
Visual Studio 2015
Returns a group GUID and toolbar ID indicating which toolbar should be displayed when this provider is active.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int GetProviderToolbar( [OutAttribute] Guid% pguidGroup, [OutAttribute] unsigned int% pdwID )
Parameters
- pguidGroup
-
Type:
System::Guid
[out] A pointer to a Group Identifier (an object of type GUID).
- pdwID
-
Type:
System::UInt32
[out] A pointer to an identifier (a value of unsigned integer type).
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Set pguidGroup and pdwID to GUID_NULL and 0, respectively, to indicate that this provider has no toolbar. If you do provide a toolbar, you must include the provider dropdown as the first group, by including this line in your CTC file:
guidSHLMainMenu:IDG_VS_TASKLIST_PROVIDERLIST,<your toolbar's group>:<your toolbar menu ID>, 0x0100;
See vscommon\appid\inc\ShellCmdPlace.ctc for examples.
From vsshell80.idl:
HRESULT IVsTaskProvider3::GetProviderToolbar( [out] GUID* pguidGroup, [out] DWORD* pdwID );
Show: