Page 1 of 1

about processes

Posted: Sun Jan 27, 2008 9:48 am
by xcm

Code: Select all

procedure Test;
var
  I: Integer;
  AProcesses: IProcesses;
begin
  AProcesses := Processes;
  for I := 0 to AProcesses.ItemCount - 1 do
    Form6.Memo1.Lines.Add(AProcesses.Items[I].ExeFile);
end;
I use it to find all process the result like this.
But I have a question about those 'srss.exe' 'SVCHOST.EXE' 'SCardSvr.exe' .... why just file name, no path?

Is it correctly?
  • [System Process]
    System
    \SystemRoot\System32\smss.exe
    csrss.exe
    \??\C:\WINDOWS\system32\winlogon.exe
    C:\WINDOWS\system32\services.exe
    C:\WINDOWS\system32\lsass.exe
    C:\WINDOWS\system32\svchost.exe
    SVCHOST.EXE
    C:\WINDOWS\System32\svchost.exe
    SVCHOST.EXE
    SVCHOST.EXE
    C:\WINDOWS\system32\ZONELABS\vsmon.exe
    C:\WINDOWS\system32\spoolsv.exe
    SCardSvr.exe
    C:\Program Files\Avira\AntiVir PersonalEdition Premium\avguard.exe
    alg.exe
    C:\Program Files\Avira\AntiVir PersonalEdition Premium\sched.exe
    C:\Program Files\Avira\AntiVir PersonalEdition Premium\avesvc.exe
    C:\WINDOWS\system32\svchost.exe
    C:\Program Files\Avira\AntiVir PersonalEdition Premium\avmailc.exe
    C:\WINDOWS\System32\svchost.exe
    C:\WINDOWS\Explorer.EXE
    C:\Program Files\Avira\AntiVir PersonalEdition Premium\avgnt.exe
    C:\Program Files\Zone Labs\ZoneAlarm\zlclient.exe
    C:\WINDOWS\system32\ctfmon.exe
    C:\WINDOWS\system32\conime.exe
    E:\XMenu\XMenu.exe
    E:\XMenu\Software\Mozilla Firefox for Portable\App\firefox\firefox.exe
    C:\Program Files\CodeGear\RAD Studio\5.0\Bin\bds.exe
    E:\XMenu\Software\Create\SubVersionXMenu\Dict.cn\TestDict.exe

Posted: Mon Feb 25, 2008 6:07 pm
by madshi
Sorry for the very late reply.

In order to get the full path to the system processes, your process needs to have enough privileges - and they also need to be enabled.