Re: How to call CreateEvent() in Windows CE 3.0 ?
- From: Ulrich Eckhardt <eckhardt@xxxxxxxxxxxxxx>
- Date: Tue, 25 Oct 2005 11:24:44 +0200
brianjorgage@xxxxxxxxx wrote:
> I am making a call to CreateEvent():
>
> hEvent[0] = CreateEvent(NULL, TRUE, FALSE, NULL);
>
> Simple enough. When this handle is passed to WaitForMultipleObjects()
> it returns -1. GetLastError indicates an invalid handle.
What is 'hEvent'? If it's a HANDLE, you can't use [0] on it, if it's an
array or a pointer the 'h' prefix is a lie.
> So I backtrack and call GetLastError() after the call to CreateEvent().
You should check the returnvalue and log that error anyways.
Uli
.
- References:
- How to call CreateEvent() in Windows CE 3.0 ?
- From: brianjorgage@xxxxxxxxx
- How to call CreateEvent() in Windows CE 3.0 ?
- Prev by Date: support of Frameset tag in Wince 5.0 browser
- Next by Date: Re: How can I disable the "available wireless networks" dialog on boot
- Previous by thread: How to call CreateEvent() in Windows CE 3.0 ?
- Next by thread: Re: Parallel Port as I/O
- Index(es):
Relevant Pages
|