Gets state information about a Shell item.
HRESULT GetItemState( IShellItem *psi, NSTCITEMSTATE nstcisMask, NSTCITEMSTATE *pnstcisFlags );
A pointer to the Shell item from which to retrieve the state.
Specifies which information is being requested, in the form of a bitmap. One or more of the NSTCITEMSTATE constants.
When this method returns, points to a bitmap that contains the values requested in nstcisMask.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
The nstcisMask value specifies which bits in the value pointed to by pnstcisFlags are requested. As a simple example, if nstcisMask=NSTCIS_SELECTED, then only the first bit in the value pointed to by pnstcisFlags is valid when this method returns. If the first bit in the value pointed to by pnstcisFlags is 1, then the NSTCIS_SELECTED flag is set. If the first bit in the value pointed to by pnstcisFlags is 0, then the NSTCIS_SELECTED flag is not set.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|
|Header||shobjidl_core.h (include Shobjidl.h)|