Share via


GetItemIndexFromOid

Send Feedback

The GetItemIndexFromOid function returns the index of the item in the collection for the given OID.

Syntax

HRESULT GetItemIndexFromOid(
  IPOutlookItemCollection * pItems,
  CEOID oidPIM,
  DWORD * pdwIndex,
);

Parameters

  • pItems
    [in] Reference to a collection of POOM items in a folder.
  • oidPIM
    [in] Reference to the PIM item's object identifier (OID).
  • pdwIndex
    [out] Reference to the item's index position within the collection.

Return Values

This method returns the standard values HRESULT_FROM_WIN32(GetLastError()), E_INVALIDARG, and ERROR_NOT_FOUND, as well as the following:

  • S_OK
    The method completed successfully.

Remarks

The item collection can be a collection created with IPOutlookItemCollection::Restrict.

Requirements

Pocket PC: Windows Mobile Version 5.0 and later
Smartphone: Windows Mobile Version 5.0 and later
OS Versions: Windows CE 5.01 and later
Header: pimstore.h
Library: pimstore.lib

See Also

Pocket Outlook Object Model API Functions | CHOOSECONTACT | FindMatchingContact

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.