Article View: borland.public.cppbuilder.nativeapi
Article #1774Re: How Can I get the Program path of a given hWnd
From: Bob Gonder
Date: Sun, 17 Jun 2007 13:05
Date: Sun, 17 Jun 2007 13:05
23 lines
1791 bytes
1791 bytes
Remy Lebeau (TeamB) wrote: >> See the help section: Retrieving a Window Property >> http://msdn2.microsoft.com/en-us/library/Aa929345.aspx > >That is for Windows CE only. "PROP_BUFFER" returns NULL data on >Win32. Good. I didn't like that "solution" anyway. You didn't mention which function yields " running processes" Ah! here it is.. SAMPLE: MODLIST.EXE Shows How to Enumerate Processes and Modules http://support.microsoft.com/kb/192986 CreateToolhelp32Snapshot() Process32First() Process32Next() And on the NT lineage (NT,2000,Xp,Vista) there is EnumProcesses Example code: http://msdn2.microsoft.com/en-us/library/ms682623.aspx
Technical Details
Message-ID:
<vr9a739n7bfbuav11ckc9s7itnbrldufan@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4673ca37$1@newsgroups.borland.com> <om1873pd7b693i0j90qr3jpi38komt1j4u@4ax.com> <46741689$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e6c0aadd4c174c13 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How Can I get the Program path of a given hWnd Date: Sun, 17 Jun 2007 06:05:40 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <vr9a739n7bfbuav11ckc9s7itnbrldufan@4ax.com> References: <4673ca37$1@newsgroups.borland.com> <om1873pd7b693i0j90qr3jpi38komt1j4u@4ax.com> <46741689$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.145.161 X-Trace: newsgroups.borland.com 1182085537 67.77.145.161 (17 Jun 2007 06:05:37 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1645