🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13305

Re: ShowWindow question

#13305
From: Martin C
Date: Sun, 19 Oct 2003 23:13
24 lines
1841 bytes
Thanks remy so much for your reply, I just have one more question, I am
trying to compile the code you gave me although I am always recieving an
error
[C++ Error] Unit1.cpp(33): E2268 Call to undefined function 'EnumProcs'

I've included
#include <windows.h>
#include <tlhelp32.h>

although I still recieve this error, so what exactly I am missing here....

Thanks for your help

"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:3f93100d$1@newsgroups.borland.com...
>     info.pName = "notepad.exe";
>
>     EnumProcs(reinterpret_cast<PROCENUMPROC>(FindExeProcessInfo),
> reinterpret_cast<LPARAM>(&info));
>
>     if( info.dwProcessId != 0 )
>     {
>         // use info.hWnd as needed
>     }
Technical Details
Message-ID: <3f931a8a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f90a515@newsgroups.borland.com> <srq1pvg3emp51jq97kjt2tkaqv8uoa5cpm@4ax.com> <3f91b0b3@newsgroups.borland.com> <pee3pv8pp2m367s11uq91tmls2fl4alf8c@4ax.com> <3f91c244@newsgroups.borland.com> <3f93100d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,644d4ac8e2f18824
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-19 16:39:11 PST
From: "Martin C" <martinc@aol.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f90a515@newsgroups.borland.com> <srq1pvg3emp51jq97kjt2tkaqv8uoa5cpm@4ax.com> <3f91b0b3@newsgroups.borland.com> <pee3pv8pp2m367s11uq91tmls2fl4alf8c@4ax.com> <3f91c244@newsgroups.borland.com> <3f93100d$1@newsgroups.borland.com>
Subject: Re: ShowWindow question
Date: Sun, 19 Oct 2003 15:13:16 -0800
Lines: 26
Organization: V Safe
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.10.4.238
Message-ID: <3f931a8a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066605194 81.10.4.238 (19 Oct 2003 16:13:14 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail