home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.win32
- Path: sparky!uunet!utcsri!torn!maccs!beame
- From: beame@maccs.dcss.mcmaster.ca (Carl Beame)
- Subject: DuplicateHandle -- passing handles to other processes
- Message-ID: <1992Nov9.163158.328@maccs.dcss.mcmaster.ca>
- Organization: Beame & Whiteside Software Ltd.
- Date: Mon, 9 Nov 1992 16:31:58 GMT
- Lines: 14
-
- 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
-