Product SiteDocumentation Site

8.11. SysCreateEventSem


>>-SysCreateEventSem(-+------+--+--------------+-)-------------><
                      +-name-+  +-manual_reset-+

Creates an event semaphore. It returns an event semaphore handle that can be used with SysCloseEventSem, SysOpenEventSem, SysResetEventSem, SysPostEventSem, and SysWaitEventSem. SysCreateEventSem returns a null string ("") if the semaphore cannot be created or already exists.
Parameters:
name
The optional event semaphore name. If you omit name, SysCreateEventSem creates an unnamed, shared event semaphore. A semaphore name can be MAX_PATH long, and can contain any character except the backslash (\) path-separator character. Semaphore names are case-sensitive.
manual_reset
A flag to indicate that the event semaphore must be reset manually by SysResetEventSem. If this parameter is omitted, the event semaphore is reset automatically by SysWaitEventSem.