Retrieves the string associated with a command.
Syntax
HRESULT queryCommandText(
BSTR cmdID,
BSTR *pcmdText
);
Parameters
- cmdID
- String value that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.
- pcmdText
- Address of a string variable where the text associated with the command will be stored.
Return Value
Returns S_OK if successful, or an error code otherwise.