IExplorerCommand::GetState method

Gets state information associated with a specified Windows Explorer command item.

Syntax


HRESULT GetState(
  [in, unique]  IShellItemArray *psiItemArray,
  [in]          BOOL fOkToBeSlow,
  [out]         EXPCMDSTATE *pCmdState
);

Parameters

psiItemArray [in]

Type: IShellItemArray*

A pointer to an IShellItemArray.

fOkToBeSlow [in]

Type: BOOL

FALSE if a verb object should not perform any memory intensive computations that could cause the UI thread to stop responding. The verb object should return E_PENDING in that case. If TRUE, those computations can be completed.

pCmdState [out]

Type: EXPCMDSTATE*

A pointer to a value that, when this method returns successfully, receives one or more Windows Explorer command states indicated by the EXPCMDSTATE constants.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft