The CommandList_GetCommandByPosition() function retrieves the tag for a command, based on the position in the command list.
CommandList_GetCommandByPosition(command_list_tag, position)
• command_list_tag – The integer tag value specifying the command list in which to search.
• position – An integer specifying which command tag to return. The value 1 specifies the first command in the command list.
An integer containing the command tag for the specified item. If the item can’t be found, the value 0 is returned.