IVsCmdNameMapping::MapNameToGUIDID Method (String^, Guid, UInt32)
Visual Studio 2015
Maps the name of a command to the GUID of its group and its identifier.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int MapNameToGUIDID( String^ pszCmdName, [OutAttribute] Guid% pguidCmdGroup, [OutAttribute] unsigned int% pdwCmdID )
Parameters
- pszCmdName
-
Type:
System::String^
[in] String containing the name of the command.
- pguidCmdGroup
-
Type:
System::Guid
[out] The GUID of the group the command belongs to.
- pdwCmdID
-
Type:
System::UInt32
[out] The command's identifier.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsCmdNameMapping::MapNameToGUIDID( [in] const LPCOLESTR pszCmdName, out] GUID *pguidCmdGroup, out] DWORD *pdwCmdID );
Show: