IUIFramework2::GetUICommandName method

Retrieves the ID of the Command.

Syntax

HRESULT GetUICommandName(
  [in]  LPWSTR commandName,
  [out] UINT32 *commandId
);

Parameters

  • commandName [in]
    The Command name.

  • commandId [out]
    When this method returns, contains a pointer to the Command ID that is associated with commandName. The Command ID is specified in the markup resource file or dynamically at run time.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Uiribbon.h

IDL

Uiribbon.idl

DLL

Uiribbon.dll

See also

IUIFramework2