ZenWINX Logo ZenWINX

Architecture - Reference Manual - Guides

Events

Functions

int __stdcall winx_create_event (short *name, int type, HANDLE *phandle)
 Creates a named event.
int __stdcall winx_open_event (short *name, int flags, HANDLE *phandle)
 Opens a named event.
void __stdcall winx_destroy_event (HANDLE h)
 Destroys an event.

Function Documentation

int __stdcall winx_create_event ( short *  name,
int  type,
HANDLE *  phandle 
)

Creates a named event.

Parameters:
[in] name the name of the event.
[in] type the type of the event. Must be SynchronizationEvent or NotificationEvent.
[out] phandle pointer to the handle of the event
Returns:
Zero for success, negative value otherwise.
Note:
  • The initial state of the successfully created event is signaled.
  • If an event already exists this function returns STATUS_OBJECT_NAME_COLLISION defined in ntndk.h file.

Definition at line 43 of file event.c.

Referenced by winx_init_synch_objects().

int __stdcall winx_open_event ( short *  name,
int  flags,
HANDLE *  phandle 
)

Opens a named event.

Parameters:
[in] name the name of the event.
[in] flags the same flags as in Win32 OpenEvent() call's dwDesiredAccess parameter.
[out] phandle pointer to the handle of the event
Returns:
Zero for success, negative value otherwise.

Definition at line 78 of file event.c.

void __stdcall winx_destroy_event ( HANDLE  h  ) 

Destroys an event.

Destroys named event created by winx_create_event().

Parameters:
[in] h the handle of the event.

Definition at line 103 of file event.c.

Referenced by winx_destroy_synch_objects().


Generated on Sat May 29 23:06:45 2010 for ZenWINX by doxygen 1.6.2