Determines whether the given command is currently available.
Syntax
HRESULT queryCommandEnabled( BSTR cmdID, VARIANT_BOOL *pfRet );
Parameters
- cmdID
- Identifier of a command. Can be any one of those given in the list of Command Identifiers.
- pfRet
- Address of a variable that receives TRUE if the command is available, or FALSE otherwise.
Return Value
Returns S_OK if successful, or an error code otherwise.
See Also
queryCommandSupported