mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 15:00:26 +02:00
Debugger: do not link in JwaTlHelp32 on Win9x platform (depends on compiler define).
git-svn-id: trunk@47325 -
This commit is contained in:
parent
d38d2f788b
commit
9b9f9f9709
@ -52,20 +52,26 @@ implementation
|
||||
|
||||
{$ifdef windows}
|
||||
uses
|
||||
Windows,
|
||||
JwaTlHelp32;
|
||||
Windows
|
||||
{$ifndef WIN9XPLATFORM}
|
||||
,JwaTlHelp32
|
||||
{$endif};
|
||||
|
||||
// Enumerate running processes.
|
||||
// Result must be always set: True if enumeration supported or False otherwise.
|
||||
// If AList is not nil it must be filled with TRunningProcessInfo items.
|
||||
function EnumerateProcesses(AList: TRunningProcessInfoList): boolean;
|
||||
{$ifndef WIN9XPLATFORM}
|
||||
var
|
||||
hShot: HANDLE;
|
||||
pe: tagPROCESSENTRY32W;
|
||||
item: TRunningProcessInfo;
|
||||
{$endif}
|
||||
begin
|
||||
{$ifdef WIN9XPLATFORM}
|
||||
Result := False;
|
||||
{$else}
|
||||
Result := True; // we can enumerate processes
|
||||
|
||||
if not Assigned(AList) then
|
||||
Exit;
|
||||
|
||||
@ -84,6 +90,7 @@ begin
|
||||
finally
|
||||
CloseHandle(hShot);
|
||||
end;
|
||||
{$endif}
|
||||
end;
|
||||
{$else}
|
||||
{$ifdef linux}
|
||||
|
Loading…
Reference in New Issue
Block a user