Platform SDK: Exchange Server

IExchExtCallback::GetSelectionCount

Returns the number of objects selected in the active window. Selections can only be made in windows that display containers.

Quick Info

See IExchExtCallback : IUnknown.

HRESULT GetSelectionCount(
  ULONG FAR * lpceid  
);
 

Parameters

lpceid
[out] Pointer to a variable containing the number of objects selected in the window.

Return Values

S_OK
The lpceid parameter returned the count of the current selection.
E_INVALIDARG
The lpceid parameter is NULL or GetSelectionCount was called from an invalid context (EECONTEXT_SESSION, EECONTEXT_TASK, EECONTEXT_MESSAGE).

Remarks

The IExchExtCallback::GetSelectionCount method is used to return the number of objects selected in the active window. The window is determined by the context in which the extension object is installed.

See Also

IExchExtCommands::InitMenu