Expand Minimize
This topic has not yet been rated - Rate this topic

SetEventData (Windows Embedded CE 6.0)

1/6/2010

This function associates data with an event handle.


BOOL SetEventData(
  HANDLE hEvent,
  DWORD dwData
);
hEvent

[in] Handle to an event that was created with CreateEvent.

dwData

[in] Specifies data to be associated with an event.

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.

Headerpkfuncs.h
Librarycoredll.lib
Windows Embedded CEWindows CE .NET 4.0 and later
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.