Share via


ICustomEventSink::OnEvent (Compact 7)

3/12/2014

The OnEvent method receives custom change event notifications from the Unified Store.

Syntax

HRESULT OnEvent (
    ULONG cEvents,
    PIMEVENT* rgEvents
);

Parameters

  • cEvents
    [in] Number of events.
  • rgEvents
    [in,size_is(cEvents)] Array of PIMEVENT structures containing the notification info.

Return Value

The OnEvent method returns the following standard HRESULT values.

  • S_OK
    The operation completed successfully.
  • 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

New for Windows Embedded Compact 7.

The OnEvent method is called when notifications are received.

Requirements

Header

pimstore.h

Library

Pimstore.lib

See Also

Reference

ICustomEventSink
PIMEVENT