Article View: borland.public.cppbuilder.nativeapi
Article #4171From Process to Window Handle
From: KL Chin
Date: Mon, 13 Mar 2006 01:59
Date: Mon, 13 Mar 2006 01:59
24 lines
1665 bytes
1665 bytes
Hi, Which function should I used to find a window with a Handle Procees with execture by ShellExecuteEx, so that I can postion the window. memset( &asei,0,sizeof(SHELLEXECUTEINFO) ); asei.cbSize = sizeof(SHELLEXECUTEINFO); asei.hwnd = GetDesktopWindow( ); asei.lpVerb = "open"; asei.lpFile = sexe.c_str( ); asei.lpParameters = sprm.c_str( ); asei.lpDirectory = spth.c_str( ); asei.nShow = SW_SHOWNORMAL; asei.hInstApp = HInstance; brst = ShellExecute Ex( &asei ); asei.hProcess <-- from this hProcess I had try using both GetWindowThreadProcessId and GetWindowThreadProcessId during EnumWindwo, but not hope. Regards KL Chin
Technical Details
Message-ID:
<4414f5b4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!feeder.xsnews.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e1b5a692dc7fc69d,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "KL Chin" <klchin@1asia.com.my> Newsgroups: borland.public.cppbuilder.nativeapi Subject: From Process to Window Handle Date: Mon, 13 Mar 2006 09:59:11 +0800 Lines: 26 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: <4414f5b4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1142224308 60.49.242.118 (12 Mar 2006 20:31:48 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!feeder.xsnews.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail