Sets the state of an item in the current list-view control.
Pointer to an LVITEMINDEX structure that describes an item. The caller is responsible for allocating this structure and setting its members.
The state to set the item, which is a bitwise combination of list view item states. Specify zero to reset, or one to set, a state.
A mask of the valid bits of the state specified by the dwState parameter. Specify a bitwise combination (OR) of list view item states.
This control is supported in Windows Vista and later.
Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.