INameSpaceTreeControl2::SetItemCustomState Method
Sets the state of the checkbox associated with the Shell item.
Syntax
HRESULT SetItemCustomState( IShellItem *psi, int iStateNumber );
Parameters
- psi
[in] A pointer to the Shell item for which checkbox state is being set.- iStateNumber
[in] The desired state of the checkbox for the Shell item.
Return Value
Returns S_OK if successful, or an error value otherwise.