Article View: borland.public.cppbuilder.nativeapi
Article #14125Re: GetModuleFileName problem
From: Bob Gonder
Date: Wed, 27 Aug 2003 22:00
Date: Wed, 27 Aug 2003 22:00
16 lines
1444 bytes
1444 bytes
Martin C wrote: > >GetModuleFileName(((HMODULE)GetWindowLong(hwndToNewWindow, >GWL_HINSTANCE)),buff,sizeof(buff)); > sometimes I receive >strange results, example: if I try to run the hook, and opened an >application build by BCB, I receive the following as the path to the exe >name "c:\Windows\VCL50.bpl" !!!... > >Can anybody help me please and tell me why I receive such problem.... Perhaps GetWindowLong(hwndToNewWindow,GWL_HINSTANCE) is NULL??
Technical Details
Message-ID:
<kcaqkv417tdarbqps4v1egl925lc9fgeet@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f4d1e9e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a9f30fdc93d98f91 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-27 15:07:35 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: GetModuleFileName problem Date: Wed, 27 Aug 2003 15:00:58 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <kcaqkv417tdarbqps4v1egl925lc9fgeet@4ax.com> References: <3f4d1e9e@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.165.94 X-Trace: newsgroups.borland.com 1062021658 67.31.165.94 (27 Aug 2003 15:00:58 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail