[DUG] How to get user name in the windows task manager processes list tab
Leigh Wanstead
leighw at softtech.co.nz
Wed Jan 28 14:10:24 NZDT 2009
Happy new year everyone
How to get user name in the windows task manager processes list tab in
Delphi source code?
I checked the TIhelp32.pas and it do not mentioned about user name
tagPROCESSENTRY32 = packed record
dwSize: DWORD;
cntUsage: DWORD;
th32ProcessID: DWORD; // this process
th32DefaultHeapID: DWORD;
th32ModuleID: DWORD; // associated exe
cntThreads: DWORD;
th32ParentProcessID: DWORD; // this process's parent process
pcPriClassBase: Longint; // Base priority of process's threads
dwFlags: DWORD;
szExeFile: array[0..MAX_PATH - 1] of Char;// Path
end;
I am using Process32First, Process32Next api.
TIA
Regards
Leigh
More information about the Delphi
mailing list