Поделиться через


IFolder::AddItemToInfraredFolder (Windows CE 5.0)

Send Feedback

This method adds an item to the list of items to be sent by infrared.

HRESULT AddItemToInfraredFolder(int olItem,IDispatch* polItem);

Parameters

  • olItem
    [in] The type of item to add: olAppointmentItem, olContactItem, olTaskItem.
  • polItem
    [out] Pointer to the item added to this folder.

Return Values

S_OK indicates success. If an error occurs, the appropriate HRESULT is returned.

Remarks

You can add any number of items of any type or combination of types to the infrared folder. Call SendToInfrared to transmit the items.

Example

The following code example shows how to add a Contact to the Infrared folder.

void AddContactToIrFolder(IPOutlookApp polApp, IContact *pContact)
{
  IFolder *pFolderIR;
  polApp->GetDefaultFolder (olFolderInfrared, & pFolderIR);
  pFolderIR->AddItemToInfraredFolder (olFolderContacts, &pContact);

  // Release objects
  pfolderIR->Release ();
}

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Pimstore.h.
Link Library: Pimstore.lib.

See Also

IFolder | IFolder Properties

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.