home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / win32 / 1878 < prev    next >
Encoding:
Text File  |  1992-11-09  |  994 b   |  24 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!utcsri!torn!maccs!beame
  3. From: beame@maccs.dcss.mcmaster.ca (Carl Beame)
  4. Subject: DuplicateHandle -- passing handles to other processes
  5. Message-ID: <1992Nov9.163158.328@maccs.dcss.mcmaster.ca>
  6. Organization: Beame & Whiteside Software Ltd.
  7. Date: Mon, 9 Nov 1992 16:31:58 GMT
  8. Lines: 14
  9.  
  10. Forgive me if this has already been answered ... but ...
  11.  
  12. I am trying to pass a handle to a named pipe to a process which I have just
  13. created. After reading the docs :-), I called DuplicateHandle with 
  14. the GetCurrentProcess() as the source process handle, the handle returned
  15. to me from the create process call as the destination handle and
  16. the pipe as the handle to duplicate. The call returned TRUE and filled in
  17. the new handle ... I passed this new handle to the new process via another
  18. named pipe ... Using the new handle in the created proceedure fails.
  19.  
  20. Help ... What am I doing wrong ... (if anything :-) ).
  21.  
  22. - Carl Beame
  23. beame@bws.com
  24.