Article View: borland.public.cppbuilder.nativeapi
Article #4084Re: From Process to Window Handle
From: KL Chin
Date: Tue, 14 Mar 2006 05:50
Date: Tue, 14 Mar 2006 05:50
45 lines
1971 bytes
1971 bytes
Hi Gambit, I understand there is not directly funtion to obtain the HWND, but how? What function should be used? Do I used Psapi.dll's funciton EnumProcessModules? or Kernell's function CreateToolhelp32Snapshot, Process32First & Process32Next Module32First & Module32Next Or Should it search the register for it right "exe" ? Regards KL Chin "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:4415eb13$1@newsgroups.borland.com... > > "KL Chin" <klchin@1asia.com.my> wrote in message > news:441539ce@newsgroups.borland.com... > >> Thx for your hint, my actual app. do included the some masks. > > Even if you do set the mask, ShellExecuteEx() only gives you a process > Handle, not a process ID. There are no functions available to > automatically > get the ID from a given handle. > > > Gambit > >
Technical Details
Message-ID:
<441659bd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4414f5b4$1@newsgroups.borland.com> <vmaa129qds4u796doibfh1d1b301qej33j@4ax.com> <441539ce@newsgroups.borland.com> <4415eb13$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e1b5a692dc7fc69d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "KL Chin" <klchin@1asia.com.my> Newsgroups: borland.public.cppbuilder.nativeapi References: <4414f5b4$1@newsgroups.borland.com> <vmaa129qds4u796doibfh1d1b301qej33j@4ax.com> <441539ce@newsgroups.borland.com> <4415eb13$1@newsgroups.borland.com> Subject: Re: From Process to Window Handle Date: Tue, 14 Mar 2006 13:50:49 +0800 Lines: 47 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 60.49.242.118 Message-ID: <441659bd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1142315453 60.49.242.118 (13 Mar 2006 21:50:53 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail