RegisterCustomCommand method

Registers a Custom Command.

Syntax


C++
HRESULT RegisterCustomCommand (
   BSTR CommandID,
   BSTR Name,
   BSTR Description,
   BSTR ImplFileSpec,
   IERUCustomCommands** ppCustomCommand)
Scripting languages
Set NewCustomCommand = Object.RegisterCustomCommand(
   CommandID
as String,
   Name
as String,
   Description
as String,
   ImplFileSpec
as String)

Parameters


CommandID

Unique identifier for the new custom command in the form "Company.CommandName"

 Name

The name to be used on the buttons and menus.

Description

Brief command description, which is displayed to administrators.

ImplFileSpec

Path and filename of the file that implements the command. Any required component file must be added by calling ::AddFile().

ppCustomCommand

Pointer to newly-created custom command object.

Return value


C++

The return code.

Scripting languages

A pointer to the newly-created custom command object.

 

Home

Applies to

IERUCustomCommandManager