🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Share a WinSock socket between EXEs ??

#1272
From: Regis St-Gelais
Date: Thu, 27 Sep 2007 12:31
15 lines
1577 bytes
Another quick question.

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

How can I start an exe and find it's process id.
EnumProcess might not be what I need because I can have many instances of 
that same exe running and it would be hard to tell wich is the right one.
Any suggestion??

TIA

-- 
Regis St-Gelais
www.laubrass.com 
Technical Details
Message-ID: <46fba293$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!194.134.4.14.MISMATCH!news2.euro.net!feeder.news-service.com!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>

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: "Regis St-Gelais" <regis.st-gelais@NOSPAMlaubrass.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46fabea9$1@newsgroups.borland.com> <46fac06c@newsgroups.borland.com>
Subject: Re: Share a WinSock socket between EXEs ??
Date: Thu, 27 Sep 2007 08:31:03 -0400
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-Antivirus: avast! (VPS 000777-1, 2007-09-26), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 70.81.146.144
Message-ID: <46fba293$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1190896275 70.81.146.144 (27 Sep 2007 05:31:15 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!194.134.4.14.MISMATCH!news2.euro.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail