IUIFramework2::GetUICommandName method

Retrieves the name of the Command.

Syntax

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

Parameters

  • commandId [in]
    The ID for the Command, which is specified in the markup resource file or dynamically at run time.

  • commandName [out]
    When this method returns, contains a pointer to the Command name that is associated with commandId.

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