Partager via


IFolder2::ReceiveFromInfrared (Compact 7)

3/12/2014

The ReceiveFromInfrared method initiates reception of one or more items via infrared transfer.

Note While the Pocket Outlook Object Model (POOM) has methods related to infrared communication, Windows Embedded Compact 7 does not support the use of infrared hardware.

Syntax

HRESULT ReceiveFromInfrared(
  IPOutlookItemCollection2** ppItems
);

Parameters

  • ppItems
    [out] Pointer to a collection that contains the items received over the infrared transfer.

Return Value

The following table shows the possible return values.

Value Description

S_OK

The operation completed successfully.

E_ABORT

The user canceled the transfer before it completed.

E_FAIL

The operation failed due to an unspecified error.

E_INVALIDARG

The operation failed because one or more of the arguments is not valid.

E_OUTOFMEMORY

The operation failed because it needs more memory resources.

E_UNEXPECTED

The operation failed due to an unexpected failure.

Remarks

The ReceiveFromInfrared method is new for Windows Embedded Compact 7. It differs from the IPOutlookApp::ReceiveFromInfrared method in that you can only receive items that are of the same type as the folder. For example, if you call this method on an Appointment folder, you can only receive appointments. If you attempt to receive another type of item, this method fails. The Infrared folder does not support this method.

Requirements

Header

pimstore.h

Library

Pimstore.lib

See Also

Reference

IFolder2
IFolder::ReceiveFromInfrared
OlDefaultFolders