SD> curProcess := GetCurrentProcess();
SD> SetPriorityClass(curProcess, REALTIME_PRIORITY_CLASS);
SD> curThread := GetCurrentThread();
SD> SetThreadPriority(curThread, THREAD_PRIORITY_TIME_CRITICAL);
JH> Thank you for this tip.
However, I forgot to mention that you have to save old class and old
priority using GetPriorityClass and GetThreadPriority functions and
restore it after processing time-critical code.
BTW, realtime atribute of my program is selling advertising space (on
the scroll bar) based on cm/seconds scrolling speed. (faster=cheaper)
JH> However, the mousepointer is not 'dead' during the 'XT-Mode' ;-) .
It isn't, on a _fast_ Pentium.
BTW, I have ProVideo graphics card (ISA) and unfornunately there are
still pauses - I guess the card is not fast enough. :-(
JH> Also the clicks are stored in a buffer or so; as soon as the
JH> Priorities are set to normal, the clicks become effective...
JH> Do you have the same experience?
Yes... and I found it normal, since mouse driver still works and
sends messages to Windows message queue but Win processes them only
when idle mode is started again.
Srdjan
... NEGAZIONE 100%
--- ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ suicidal@panon.ns.ac.yu ÄÄÄ
(1:3618/555)
---------------
* Origin: The NeverEnding BBS-Deltona FL 904-789-8383/neverending.com
|