Retrieves the state of a list view item.
The index of the item whose state is to be retrieved.
Mask specifying which of the item's state flags to return.
An item's state is specified by the state member of the LVITEM structure, as described in the Platform SDK. When you specify or change an item's state, the stateMask member specifies which state bits you want to change.