IVsTaskProvider3.GetProviderToolbar(Guid, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a group GUID and toolbar ID indicating which toolbar should be displayed when this provider is active.
public:
int GetProviderToolbar([Runtime::InteropServices::Out] Guid % pguidGroup, [Runtime::InteropServices::Out] System::UInt32 % pdwID);
public int GetProviderToolbar (out Guid pguidGroup, out uint pdwID);
abstract member GetProviderToolbar : Guid * uint32 -> int
Public Function GetProviderToolbar (ByRef pguidGroup As Guid, ByRef pdwID As UInteger) As Integer
Parameters
- pguidGroup
- Guid
[out] A pointer to a Group Identifier (an object of type GUID).
- pdwID
- UInt32
[out] A pointer to an identifier (a value of unsigned integer type).
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
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.
COM Signature
From vsshell80.idl:
HRESULT IVsTaskProvider3::GetProviderToolbar(
[out] GUID* pguidGroup,
[out] DWORD* pdwID
);