Christophe L.
unread,Nov 16, 2012, 2:01:26 PM11/16/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi
I've written a service which has to list active windows process.
It works under windows XP, but under windows 7 the list of process is
very limited (quite only the service itself)
I use this code (extract only to not bother you):
EnumWindows(@AllWindows, LParam(ListeProcess));
and
"
...
SendMessage(wHnd, WM_GETTEXT, 255, LongInt(@Buffer[0]));
if (Buffer <> '') and IsWindow(wHnd) then
begin
GetWindowThreadProcessID(whnd, @hprocessID);
...
"
and
"
...
hProcess := OpenProcess(PROCESS_QUERY_INFORMATION or PROCESS_VM_READ,
false, PID);
...
"
I'm using Delphi 6.
Thanks
Christophe