次の方法で共有


CePimCommand (Windows Embedded CE 6.0)

1/6/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.

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.

    typedef enum tagPIMTYPE
    {
      PT_CALENDAR = 0,
      PT_TASKS,
      PT_CONTACT
    } 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.

Remarks

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.

Requirements

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

See Also

Reference

Pocket Outlook Object Model Functions

Other Resources

Pocket Outlook Object Model Reference
Pocket Outlook Object Model (POOM)