IExchExtCallback::GetMenuPos

Returns the position of a command, menu, or set of commands on the Microsoft Exchange menu for the current context.

Quick Info

See IExchExtCallback : IUnknown.

HRESULT GetMenuPos(
  UINT cmdid,            
  HMENU FAR * lphmenu,   
  ULONG FAR * lpmposMin,   
  ULONG FAR * lpmposMax,   
  ULONG ulFlags          
);
 

Parameters

cmdid
[in] The command identifier of interest.
lphMenu
[out] Pointer to the menu handle where the cmdid parameter can be found.
lpmposMin
[out] Pointer to the menu position above the command.
lpmposMax
[out] Pointer to the menu position below the command.
ulFlags
[in] Bitmask of flags. The following flag can be set:
EECBGMP_RANGE
The returned positions should correspond to the separator-delimited range of the menu containing the command.

Return Values

S_OK
No errors occurred.
E_FAIL
Microsoft Exchange cannot find the menu associated with the cmdid parameter.
E_INVALIDARG
The command identifier does not correspond to a menu item or the lphmenu parameter is NULL, or there is no HMENU associated with the context where the extension is installed.