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

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!concert!sas!mozart.unx.sas.com!sasdxk
  3. From: sasdxk@skyhawk.unx.sas.com (Dave Kolb)
  4. Subject: Re: DuplicateHandle -- passing handles to other processes
  5. Originator: sasdxk@skyhawk.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BxGL9D.Ks9@unx.sas.com>
  8. Date: Mon, 9 Nov 1992 17:15:13 GMT
  9. References:  <1992Nov9.163158.328@maccs.dcss.mcmaster.ca>
  10. Nntp-Posting-Host: skyhawk.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 24
  13.  
  14.  
  15. In article <1992Nov9.163158.328@maccs.dcss.mcmaster.ca>, beame@maccs.dcss.mcmaster.ca (Carl Beame) writes:
  16. |> Forgive me if this has already been answered ... but ...
  17. |>
  18. |> I am trying to pass a handle to a named pipe to a process which I have just
  19. |> created. After reading the docs :-), I called DuplicateHandle with
  20. |> the GetCurrentProcess() as the source process handle, the handle returned
  21. |> to me from the create process call as the destination handle and
  22. |> the pipe as the handle to duplicate. The call returned TRUE and filled in
  23. |> the new handle ... I passed this new handle to the new process via another
  24. |> named pipe ... Using the new handle in the created proceedure fails.
  25. |>
  26. |> Help ... What am I doing wrong ... (if anything :-) ).
  27. |>
  28. |> - Carl Beame
  29. |> beame@bws.com
  30.  
  31. Post your code fragment.  I've coded this but not tested it yet.
  32. -- 
  33. Dave Kolb                     Opinions are mine not SAS'
  34. SAS Institute, Inc.           EMAIL:      sasdxk@unx.sas.com
  35. SAS Campus Drive - J206       Phone:      (919) 677-8000 x6827
  36. Cary, NC  27513-2414 USA      FAX:        (919) 677-8123
  37.  
  38.