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


IFolder::ReceiveFromInfrared (Windows CE 5.0)

Send Feedback

This method initiates IR reception of items belonging to the folder type.

HRESULT ReceiveFromInfrared(IPOutlookItemCollection** ppolItems);

Parameters

  • ppolItems
    [out] Pointer to the collection of items received over the infrared link.

Return Values

S_OK indicates success. A_ABORT indicates the user canceled the transfer before it was completed. If an error occurs, the appropriate HRESULT is returned.

Remarks

This method on the Folder interface, unlike the Application method IPOutlookApp::ReceiveFromInfrared, initiates reception of items of only the current folder type. For example, if you call this method on an Appointment folder, you will only be able to receive appointments. If a device attempts to send a different type of item over the infrared link, the call fails. The infrared folder does not support this method.

Example

The following code example shows how to receive appointments over the IR port.

void ReceiveAppointments (IPOutlookApp *polApp)
{
  IFolder *pFolder;
  IPOutlookItemCollection *pItemsFromIR;
  polApp->GetDefaultFolder (olFolderCallendar, &pFolder)
  pFolder->ReceiveFromInfrared (&pItemsFromIR);

  // Release objects
  pFolder->Release ();
  pItemsFromIR->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.