[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:13:26 NZDT 2009
I need the session id too.
Have a nice day
Regards
Leigh
-----Original Message-----
From: Leigh Wanstead [mailto:leighw at softtech.co.nz]
Sent: Wednesday, 28 January 2009 2:10 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: How to get user name in the windows task manager processes list
tab
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