Commands

Property of IApplication

Command list. SAFEARRAY of BSTR

Read-Only Property of type VARIANT

JavaScript

var pCommands = Application.Commands;

Visual Basic Script

pCommands = Application.Commands

C++

VARIANT pCommands;
HRESULT hr = Application.get_Commands(&pCommands);

Example of how to work with SAFEARRAY objects can be found here.