The CommandList_FindCommand() function retrieves the position of the specified item in a command list.
CommandList_FindCommand(command_list_tag, item_tag)
• command_list_tag – The integer tag value specifying the command list in which to search.
• item_tag – The integer tag value for the command or command list being searched for.
An integer specifying the location of the item. The value 0 indicates the item was not found.