Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CePimCommand

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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


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

hWnd

[in] Application window handle.

ptData

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

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.

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::GetItemFromOid method of the POOM IPOutlookApp object.

pReserved

[in] A reserved parameter; currently NULL.

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

The function CePimCommand has been deprecated and is no longer used for creating Outlook Mobile menu add-ins. Use the IContextMenu interface instead.

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

Headerpimstore.h
LibraryPimstore.lib
Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft