Creates a game event to be fired later.
The Handle should not be closed via CloseHandle(). It must be closed via event.Fire() or event.Cancel().
Event CreateEvent(const char name, bool force)
Name of event.
If set to true, this forces the event to be created even if it's not being hooked. Note that this will not force it if the event doesn't exist at all.
Handle to event. INVALID_HANDLE is returned if the event doesn't exist or isn't being hooked (unless force is true).