Here is an example of the CreateEvent function:
HANDLE Event = CreateEvent(NULL,TRUE,FALSE,L"anEVENT");
if(GetLastError() == 0){//Success}
check the following link for more info on the function:
http://msdn.microsoft.com/en-us/library/ms682396(v=vs.85).aspx[
^]
post the code your using if your having any more trouble.
Regards,
D, Kurt.