Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The CePimCommandfunction creates a menu add-in on the Toolsmenu in the Contacts, Calendar, and Tasks applications. The dynamic-link library (DLL) that supports the menu add-in must define and expose this function.

Syntax

void CePimCommand(
  HWND 
hWnd,
  PIMTYPE 
ptData,
  UINT 
uDataCount,
  HANDLE * 
rghData,
  void 
pReserved
);

Parameters

hWnd

[in] Application window handle.

ptData

[in] The application calling this function. The following code example shows the definition for this enumeration.

Copy Code
typedef enum tagPIMTYPE
{
  PT_CALENDAR = 0,
  PT_TASKS,
  PT_CONTACT
} PIMTYPE;

The following code example shows that, in the case of the Microsoft Palm-sized PC 1.2 Color, the constants are ordered differently.

Copy Code
typedef enum tagPIMTYPE
{
  PT_CONTACT = 0,
  PT_CALENDAR,
  PT_TASKS
} PIMTYPE;
uDataCount

[in] Number of items that are in the array rghData.

rghData

[in] An array of Windows Embedded CE object identifiers for the currently selected items in the Outlook Mobile application. You can use the object identifiers to get the selected items with the IPOutlookApp::GetItemFromOidmethod of the POOM IPOutlookAppobject.

pReserved

[in] A reserved parameter; currently NULL.

Remarks

To ensure that your Calendar menu extension does not fail during the call to IPOutlookApp::GetItemFromOid, use IUnknown::AddRefand IUnknown::Releaseso your extension objects are not inadvertently freed by another process.

The function CePimCommandhas been deprecated and is no longer used for creating Outlook Mobile menu add-ins. Use the IContextMenuinterface instead.

For more information on adding menus and new menu options to existing context-sensitive shortcut menus, see Developing Menu Components.

Requirements

Header pimstore.h
Library Pimstore.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also