Returns the handle of the object.
[ lHandle = ] Object.Handle
The Handle property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AEvent |
AEvent object |
|
lHandle |
Long |
An integer specifying the handle of the AEvent object. |
This property is read-only at run time only.
The following example attempts to wait for the notification (signaled) from several AEvent objects before attempting to access the controlled resource:
! arrayEventHandles is used to store the handles of 3 AEvent objects
arrayEventHandles[0]=event1.Handle
arrayEventHandles[1]=event2.Handle
arrayEventHandles[2]=event3.Handle
if (WaitForMultipleObjects(arrayEventHandles, True, 100) = waitObjectO)
! Access protected resources
endif