Raymond175 Contributor
Joined: 24 Apr 2002 Posts: 72
|
Posted: Fri Sep 13, 2013 3:18 pm Post subject: Get executable file from window handle |
|
|
Hi,
I'm trying to get a list of all visible windows with their executable file.
But whatever I try, I do not get a good list of executable files.
Right now I'm using GetWindowModuleFileName, but that is only giving me the executable files of 2 or 3 window identifiers, while I have a list with several hundreds window identifiers. For all the other identifiers, no executable file is returned.
Code: |
%H = @STRDEL(@WINEXISTS(%%Identifier), 1, 1)
%T = @FILL(256)
%Z = @LIB(User32, GetWindowModuleFileName, INT:, INT:%H, @ADDR("%T"), 255)
|
I have Internet Explorer, Notepad, Wordpad, Calculator open, but no executable files displayed.
Can someone tell me what I'm doing wrong?
Does this have anything to do with me running a 64-bit version of Windows 7 and using User32.dll?
Thanks in advance,
Raymond |
|