home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / misc / 1530 < prev    next >
Encoding:
Text File  |  1992-08-27  |  973 b   |  28 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!franz.com!sdj
  3. From: sdj@franz.com (Steve D. Jacobson)
  4. Subject: NotifyRegister() question
  5. Message-ID: <1992Aug27.173716.17324@franz.com>
  6. Sender: news@franz.com
  7. Nntp-Posting-Host: rubix
  8. Organization: Franz Incorporated, Berkeley CA
  9. Date: Thu, 27 Aug 1992 17:37:16 GMT
  10. Lines: 16
  11.  
  12. I would like to invoke WinExec() and then wait in a temporary GetMessage()/
  13. DispatchMessage() loop until the application invoked by WinExec() terminates.
  14.  
  15. I am trying to use the toolhelp DLL NotifyRegister() function to do this.
  16.  
  17. By looking for a NFY_EXITTASK notification, I can tell that some application
  18. has completed, but I can't tell that it's the one I'm interested in. The
  19. other things I've tried, like looking to see if the NFY_DELMODULE handle
  20. matches the return value I get from WinExec(), don't work.
  21.  
  22. Has anyone out there tried to do something like this and figured out what
  23. notifications to look for?
  24.  
  25. Thanks,
  26.  
  27. Steve
  28.