If the cmd parameter has the value of CMA_FIRST or CMA_LAST, the pRecord parameter in param1 is ignored and the first or last record, respectively, in the container is returned.
Depending on the value of the fsSearch parameter, the container records are enumerated in item order or in z-order.
See RECORDCORE or MINIRECORDCORE for a complete list and descriptions of all container record attributes.