def create_event():
event = windll.kernel32.CreateEventA(<EOL>None,  <EOL>BOOL(True),  <EOL>BOOL(True),  <EOL>None  <EOL>)<EOL>if not event:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>return event<EOL>
Create Win32 event.