Jim.Gilliland@p3.f209.n141.z1.FIDONET.ORG (Jim Gilliland) (02/02/90)
MR> re: priority deltas. MR> MR> Yes, it's clearer now, but it doesn't seem very sensible. Can you MR> query the kernel to find the current priority level? If so, then MR> the scheme is more sensible. Can you set the priority absolutely? MR> (rather than indirectly by finding the current setting and then MR> changing it the desired amount) -- again, I hope so, that would be MR> more sensible. I'm not sure I'd call it sensible either, but nobody asked me :-) Yes, you can query the current priority level using DosGetPrty. And you can set it directly, if I read the docs correctly. When you issue DosSetPrty, you can specify a 1 through 4 for the class (idle, regular, time-critical, and fixed-high) or you can provide a class of zero, which says leave the current class in effect. When you do this (class=0), then the level field is treated as a delta. But when you specify a class of 1-4, the base level is set to zero and the delta is applied to that. That lets you set it to an absolute value without knowing its current value. -- Jim Gilliland - via FidoNet node 1:140/22 UUCP: alberta!dvinci!weyr!141!209.3!Jim.Gilliland Internet: Jim.Gilliland@p3.f209.n141.z1.FIDONET.ORG Standard Disclaimers Apply...