Yes, apparently I'm having even more problems with WinAPI programming. Nothing seems to work as advertised.
GetWindowModuleFileName is just wrong most of the time. It says it returns the EXE but it doesn't. For example, FireFox instances return the name of MYPROGRAM.exe ( IE: the name of the BMax program which is querying this information. And the process id's are all the same too. Now ok, FireFox has tabbed windows, so I'm ok with it return the same process id for each window, but it really shouldn't be returning the same process id for my blitzmax program and firefox. And some other stuff too.
GetWindowThreadProcessId is the same as above really. As I mentioned, the process id's are not unique, nor close.
EnumWindows is supposed to return only top level windows but it returns a huge number of windows. Is this really right?
I've spent hours googling for this stuff, but all I can find is numerous pages offering the same explanations and people describing how it does exactly what I want in each case. Except that none of it does.
GetWindowModuleFileName is just wrong most of the time. It says it returns the EXE but it doesn't. For example, FireFox instances return the name of MYPROGRAM.exe ( IE: the name of the BMax program which is querying this information. And the process id's are all the same too. Now ok, FireFox has tabbed windows, so I'm ok with it return the same process id for each window, but it really shouldn't be returning the same process id for my blitzmax program and firefox. And some other stuff too.
GetWindowThreadProcessId is the same as above really. As I mentioned, the process id's are not unique, nor close.
EnumWindows is supposed to return only top level windows but it returns a huge number of windows. Is this really right?
I've spent hours googling for this stuff, but all I can find is numerous pages offering the same explanations and people describing how it does exactly what I want in each case. Except that none of it does.