SetEventData (Windows Embedded CE 6.0)
This function associates data with an event handle.
TRUE indicates success. FALSE indicates failure. Call GetLastError to get extended error information.
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 for the event is doing something else, the data from the first call is dropped.
There is no difference between handles that are manually reset and those that are automatically reset.
SetEventData requires privileged access.