* main thread of a process
@ 2004-02-20 7:51 borota
0 siblings, 0 replies; only message in thread
From: borota @ 2004-02-20 7:51 UTC (permalink / raw)
To: cygwin
I want to send messages to the main thread of a Win process created with
'spawn'. Is there a way to do that in 'pure Cygwin'?
The Windows sequence would be:
CreateProcess(NULL, cmd, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
...
PostThreadMessage(pi.dwThreadId, WM_QUIT, 0, 0); //or whatever
...
'spawn' returns the 'pid' of the new process. Is that always equal to
pi.dwProcessId? Is there a way to get from this 'pid' to sending messages to
the main thread? Is there a place where pi.dwThreadId is saved?
(global structure, etc.)
Thanks,
Greg
--
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-20 7:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-20 7:51 main thread of a process borota
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).