🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1275

Re: Share a WinSock socket between EXEs ??

#1275
From: Remy Lebeau (TeamB)
Date: Thu, 27 Sep 2007 17:01
18 lines
1548 bytes
"Regis St-Gelais" <regis.st-gelais@NOSPAMlaubrass.com> wrote in message
news:46fba293$1@newsgroups.borland.com...

> When I call WSADuplicateSocket, I need to pass it
> the process identifier of the target process in which
> the duplicated socket will be used.

Which you will know since you are starting the new process yourself after
accepting the socket.

> How can I start an exe and find it's process id.

If you are using CreateProcess() to start the .exe, then it returns that
information to you.


Gambit
Technical Details
Message-ID: <46fbe215$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46fabea9$1@newsgroups.borland.com> <46fac06c@newsgroups.borland.com> <46fba293$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fc2e925d3a2e2af
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46fabea9$1@newsgroups.borland.com> <46fac06c@newsgroups.borland.com> <46fba293$1@newsgroups.borland.com>
Subject: Re: Share a WinSock socket between EXEs ??
Date: Thu, 27 Sep 2007 10:01:38 -0700
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.29.61
Message-ID: <46fbe215$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1190912533 75.83.29.61 (27 Sep 2007 10:02:13 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail