home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1770 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!agate!linus!progress!neil
  3. From: neil@progress.COM (Neil Galarneau)
  4. Subject: Re: WinExec return useful?
  5. Message-ID: <1992Sep10.180455.25745@progress.com>
  6. Sender: usenet@progress.com (Mr. Usenet)
  7. Nntp-Posting-Host: pinta
  8. Organization: Progress Software Corp.
  9. References: <dobbins.271.715550243@lan.ccit.arizona.edu>
  10. Distribution: usa,world
  11. Date: Thu, 10 Sep 1992 18:04:55 GMT
  12. Lines: 26
  13.  
  14. dobbins@lan.ccit.arizona.edu (Gary Dobbins) writes:
  15.  
  16. >When an app calls WinExec, the return value is described somewhat vaguely
  17. >in the SDK as a task handle, which I presume is an instance handle. (?)
  18.  
  19. _Undocumented Windows_ by Schulman, Maxey, and Pietrek (an excellent book) has
  20. a page which discusses the return value from WinExec (the hInstance/DGROUP).
  21.  
  22. >How, then, can I go about locating the hWnd for this instance's main window, 
  23. >in order to send it messages?  I've tried PostAppMessage (which accepts an 
  24. >instance handle instead of a hWnd), with no luck.
  25.  
  26. I think PostAppMessage takes an htask.  The book gives a function
  27. hTask_from_hInstance that might do the trick.
  28.  
  29. >Thanks in advance...
  30.  
  31. You are welcome.
  32.  
  33. >        Gary L. Dobbins  *  University of Arizona  *  (602)621-6715
  34. >             dobbins@arizona.edu  *  dobbins@arizvms (bitnet)
  35. >     "Some days, you just can't get rid of a bomb..." - Batman, 1966
  36.  
  37.  
  38. Neil
  39. neil@progress.com
  40.