SetEventData (Windows CE 5.0)

Send Feedback

This function associates data with an event handle.

BOOLSetEventData( HANDLE hEvent,DWORDdwData);

Parameters

  • hEvent
    [in] Handle to an event that was created with CreateEvent.
  • dwData
    [in] Specifies data to be associated with an event.

Return Values

If the function succeeds, then TRUE is returned; otherwise, FALSE is returned. On failure, call GetLastError for additional error information.

Remarks

The value stored can be a pointer to a memory location. If the value is a pointer, it must be accessible in the context in which it is dereferenced.

When two calls to SetEventData are made consecutively, and the thread that is supposed to be waiting on the event is doing something else, the data from the first call is dropped.

There is no difference between handles that are manual reset or auto reset.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Pkfuncs.h.
Link Library: Coredll.lib.

See Also

CreateEvent | GetEventData

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.