Partager via


IPOutlookApp3::AdviseCustomEvent (Compact 7)

3/12/2014

The AdviseCustomEvent method registers a custom notification sink.

Syntax

HRESULT AdviseCustomEvent(
  const GUID* pGuid,
  ICustomEventSink* pSink,
  DWORD* pdwCookie
);

Parameters

  • pGuid
    [in,optional] Unique identifier for the custom notification to listen to. If this parameter is NULL, all custom notifications will be received.
  • pSink
    [in] The callback sink for the notifications.
  • pdwCookie
    [out] The identifier for this instance of the notification to be used during an unadvise.

Return Value

The AdviseCustomEvent 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.

Requirements

Header

pimstore.h

Library

Pimstore.lib

See Also

Reference

IPOutlookApp3