Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Apr : For some reason I thought this would be easy ...
| Subject: | For some reason I thought this would be easy ... |
| Posted by: | "Wayne Davis" (sa..@drillmasters.com) |
| Date: | Thu, 14 Apr 2005 15:39:16 |
I have an app which communicates with a VB6 app be sending messages. I
use the FindWindow to get the handle of the VB app and everything works
fine. Now I need to know the filename of the VB EXE so I can read the
correct registry data, so I figured the GetModuleFileName API function
would return the name of the exe file but if I pass the Handle returned
by the FindWindow API I keep getting zero returned from the
GetModuleFileName API call