Results 1 to 23 of 23

Thread: [VB6] - Class for waiting asynchronous kernel objects.

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2015
    Posts
    2,687

    [VB6] - Asynchronous waiting for kernel objects.

    Hello everyone.

    This class allows to wait for Windows kernel objects and generate an event when an object switches to the signaled state or a timeout has elapsed.

    The class has 3 methods: vbWaitForSingleObject, vbWaitForMultipleObjects and Abort. The first two methods are the analogs of the corresponding WINAPI functions WaitForSingleObject and WaitForMultipleObjects.

    As soon as an object (or all the objects) changes the state to signaled the event OnWait is fired. The arguments of the events contains the event handle (or the pointer to the handles) and the returned value. Abort method allows to break any pending waiting operation. It can either returns immediately or wait until the request will be processed.

    The class also contains property IsActive which shows if there is an active waiting operation.

    Github repository.
    Last edited by The trick; Nov 20th, 2021 at 03:32 PM. Reason: New version

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width