Partilhar via


SINK_ENTRY_INFO

Use the SINK_ENTRY_INFO macro within an event sink map to provide the information needed by IDispEventSimpleImpl to route events to the relevant handler function.

SINK_ENTRY_INFO( 
   id, 
   iid, 
   dispid, 
   fn, 
   info 
)

Parameters

  • id
    [in] Unsigned integer identifying the event source. This value must match the nID template parameter used in the related IDispEventSimpleImpl base class.

  • iid
    [in] IID identifying the dispatch interface.

  • dispid
    [in] DISPID identifying the specified event.

  • fn
    [in] Name of the event handler function. This function must use the _stdcall calling convention and have the appropriate dispinterface-style signature.

  • info
    [in] Type information for the event handler function. This type information is provided in the form of a pointer to an _ATL_FUNC_INFO structure. CC_CDECL is the only option supported in Windows CE for the CALLCONV field of the _ATL_FUNC_INFO structure. Any other value is unsupported thus its behavior undefined.

Remarks

The first four macro parameters are the same as those for the SINK_ENTRY_EX macro. The final parameter provides type information for the event. CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods; any other return value is unsupported and its behavior is undefined.

Requirements

Header: atlcom.h

See Also

Reference

BEGIN_SINK_MAP

SINK_ENTRY

SINK_ENTRY_EX

IDispEventSimpleImpl Class

Concepts

Supporting IDispEventImpl

Other Resources

Composite Control Macros

ATL Macros