Вниз
Скачать: CL | DM;

Worse, it is a general bug!   Найти похожие ветки 

 
thaddy   (2005-10-19 19:58) [0]

Vladimir,

My previous post hints to a far more serious issue:

The use of  GetThreadPriorityBoost break win9X compatibility!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I suggest:

 if (WinVer => WvNT) and (GetThreadPriorityBoost( fHandle, B )) then
   Result := B;


 
thaddy   (2005-10-19 20:03) [1]



function TThread.GetPriorityBoost: Boolean;
var B: Bool;
begin
 Result := TRUE;
 if fHandle = 0 then Exit;
 if (WinVer >= WvNT) and GetThreadPriorityBoost( fHandle, B ) then
   Result := B;
end;

procedure TThread.SetPriorityBoost(const Value: Boolean);
begin
 if fHandle = 0 then Exit;
 if (WinVer >= WvNT) and SetThreadPriorityBoost( fHandle, not Value );
end;


 
thaddy   (2005-10-19 20:06) [2]

Sorry, I have a flue:


function TThread.GetPriorityBoost: Boolean;
var B: Bool;
begin
 Result := TRUE;
 if fHandle = 0 then Exit;
 if (WinVer >= WvNT) then // only evaluate if this is true, regardless of evaluation settings
   if GetThreadPriorityBoost( fHandle, B ) then
     Result := B;
end;

procedure TThread.SetPriorityBoost(const Value: Boolean);
begin
 if fHandle = 0 then Exit;
 if WinVer >= WvNT then
     SetThreadPriorityBoost( fHandle, not Value );
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.028 c
2-1151063252
WebSqlNeederr
2006-06-23 15:47
2006.07.09
Как узнать путь где находится данная копия программы?


2-1150898583
vacek
2006-06-21 18:03
2006.07.09
С помощью чего можно получить доступ к не списку компонента com


1-1148740214
T54
2006-05-27 18:30
2006.07.09
Русский шрифт на Win 2K/XP eng = крякозябры


1-1148550877
webpauk
2006-05-25 13:54
2006.07.09
Вставить gif в Richedit


2-1151101235
arturich
2006-06-24 02:20
2006.07.09
определение индекса строки по найденному слову




   Наверх