home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- 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
- From: sasdxk@skyhawk.unx.sas.com (Dave Kolb)
- Subject: Re: DuplicateHandle -- passing handles to other processes
- Originator: sasdxk@skyhawk.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <BxGL9D.Ks9@unx.sas.com>
- Date: Mon, 9 Nov 1992 17:15:13 GMT
- References: <1992Nov9.163158.328@maccs.dcss.mcmaster.ca>
- Nntp-Posting-Host: skyhawk.unx.sas.com
- Organization: SAS Institute Inc.
- Lines: 24
-
-
- In article <1992Nov9.163158.328@maccs.dcss.mcmaster.ca>, beame@maccs.dcss.mcmaster.ca (Carl Beame) writes:
- |> Forgive me if this has already been answered ... but ...
- |>
- |> I am trying to pass a handle to a named pipe to a process which I have just
- |> created. After reading the docs :-), I called DuplicateHandle with
- |> the GetCurrentProcess() as the source process handle, the handle returned
- |> to me from the create process call as the destination handle and
- |> the pipe as the handle to duplicate. The call returned TRUE and filled in
- |> the new handle ... I passed this new handle to the new process via another
- |> named pipe ... Using the new handle in the created proceedure fails.
- |>
- |> Help ... What am I doing wrong ... (if anything :-) ).
- |>
- |> - Carl Beame
- |> beame@bws.com
-
- Post your code fragment. I've coded this but not tested it yet.
- --
- Dave Kolb Opinions are mine not SAS'
- SAS Institute, Inc. EMAIL: sasdxk@unx.sas.com
- SAS Campus Drive - J206 Phone: (919) 677-8000 x6827
- Cary, NC 27513-2414 USA FAX: (919) 677-8123
-
-