Message-Id: <200801031414.m03EEIMj012912@delorie.com>
X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
From: =?UTF-8?B?VEFKVEhZIFRhbcOhcw==?= <tajthy@mailbox.hu>
To: cygwin@cygwin.com
Subject: PID -> WindowHandle (stop/restart processes)
Reply-To: tajthy@mailbox.hu
X-Origin: 217.79.137.254
Date: Thu, 03 Jan 2008 14:09:11 +0100
X-Uidl: 119936575127385@mailboxhu
X-Mailer: VizslaMail 4.11
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m03EEIMj012912

Hi,

I wanted to stop and restart mencoder automatically under cygwin. I have read
that sending a STOP signal is not a proper solution and signal handling is not
perfectily solved (I tried and this does not work on mencoder :-( ). So as a
workaround I installed Win32::GutTest perl module which implements SendKeys
function which can send a ctrl+S/ctrl+Q to the window. This work.

I would like to find the window handle to the specific PID in cygwin. Is there a
way to do this? Now I use FindWindowLike function giving a list of window handle
having matching window title. But it is not "nice". With ps (or /proc/<PID>) I
can detect the windows PID of the process, but how can I find the window handle
belonging to this WPID? Is it stored somewhere in window local memory content
(GetWindowLong)?

TIA!

TT
_____________________________________________________________A legnagyobb TORRENT kereső napi 25000 új letöltés - www.warez.hu

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


