"Dmitry Timoshkov" dmitry@codeweavers.com wrote:
This won't work across processes.
Looks like GetWindowModuleFileName is not supposed to work for other process windows, at least in the following snippet both GetWindowLongPtr and GetWindowModuleFileName return 0 but don't change the last error value under XP although FindWindow returns a valid window handle:
AF in the bug 10002 pointed out to http://support.microsoft.com/kb/228469 which explains that.