IPOutlookApp2::GetItemFromOidEx
Windows Mobile 6.5
4/8/2010
The GetItemFromOidEx method gets a PIM item (either an Appointment, Contact, or Task), given it's unique Object Identifier (OID).
HRESULT GetItemFromOidEx( ULONG oidPIM, ULONG ulFlags, IItem ** ppItem )
- oidPIM
-
[in] The object's unique identifier.
- ulFlags
-
[in] Not used. Must be 0.
- ppItem
-
[out] A reference to the PIM IItem object.
The following code example demonstrates how to use GetItemFromOidEx.
Note: |
|---|
| To make the following code example easier to read, security checking and error handling are not included. This code example should not be used in a release configuration unless it has been modified to include them. |
HRESULT GetItemFromOidExExample(IPOutlookApp2 *pPoom, long lOid, IItem **ppItem)
{
HRESULT hr = E_FAIL;
hr = pPoom->GetItemFromOidEx(lOid, 0, ppItem);
return hr;
}
Community Additions
Show:
Note: