Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7707 Alex2003 1
2
xmlns:o="urn:schemas-microsoft-com:office:office"
3
xmlns:w="urn:schemas-microsoft-com:office:word"
4
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
5
xmlns="http://www.w3.org/TR/REC-html40">
6
 
7
8
9
10
11
12
13
31
32
33
332
418
448
449
 
450
451
 
452
453
 
454

Back

457
style='mso-ansi-language:RU'> to main
458
style='mso-bidi-font-weight:normal'>

459
 
460

 

463
 
464

Function 23 -

467
wait for events with a timeout

468
 
469

 

472
 
473

If the message queue is empty, waiting for the message

476
in the queue to appear, but not more than the specified time.
477
lang=EN-US style='font-family:"Arial","sans-serif";mso-ansi-language:EN-US'> 
478
class=GramE>Then reads the message from the queue.

479
 
480

 

483
 
484

Options:

487
 
488

  * eax =

491
23 - function number

492
 
493

  * ebx =

496
timeout (in hundredths of a second)

497
 
498

Return value:

501
 
502

  * eax = 0

505
- the message queue is empty

506
 
507

  * otherwise eax

510
= event (see the list of events)

511
 
512

 

514
 
515

Remarks:

518
 
519

  Only those events

522
that are included in the mask set by function 40 are taken into account. By
523
default, these are redrawing events, pressing keys and buttons.

524
 
525

  To check if there is

528
a message in the queue, use function 11. To wait indefinitely, use function 10.

529
 
530

  Passing

533
class=SpellE>ebx = 0 results in an instant return of eax
534
= 0.

535
 
536

  In the current

539
implementation, an immediate return from the function with eax
540
= 0 will occur if the addition of ebx with the current
541
value of the time counter causes a 32-bit overflow.

542
 
543

 

546
 
547

Constants for registers:

550
 
551

  eax -

554
SF_WAIT_EVENT_TIMEOUT (23)

555
 
556
557
 
558
559
 
560