🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: process name corresponding to the particular TCP/UDP port

#17715
From: Boguslaw Fries
Date: Thu, 06 Mar 2003 07:27
17 lines
1482 bytes
Thanks, I tried it
but
it returns NULL

typedef DWORD ( __import WINAPI *PAllocateTcp ) ( PMIB_TCPEXTABLE, bool,
HANDLE, DWORD, DWORD );
PAllocateTcp  *pAllocateAndGetTcpExTableFromStack;


 pAllocateAndGetTcpExTableFromStack = ( PAllocateTcp * ) GetProcAddress(
LoadLibrary( "iphlpapi.dll"),
    "AllocateAndGetTcpExTableFromStack" );


I have Windows 2000 and Borland Builder 3.0

Boguslaw Fries
Technical Details
Message-ID: <3e66f748$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e64b9a4$1@newsgroups.borland.com> <3e64ec88@newsgroups.borland.com> <3e65a4b7$1@newsgroups.borland.com> <3e66087e@newsgroups.borland.com> <3e661372@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8c11b255533d110e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-06 22:37:32 PST
From: "Boguslaw Fries" <B.Fries@luca-online.de>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e64b9a4$1@newsgroups.borland.com> <3e64ec88@newsgroups.borland.com> <3e65a4b7$1@newsgroups.borland.com> <3e66087e@newsgroups.borland.com> <3e661372@newsgroups.borland.com>
Subject: Re: process name corresponding to the particular TCP/UDP port
Date: Thu, 6 Mar 2003 08:27:43 +0100
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 217.225.24.16
Message-ID: <3e66f748$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1046935368 217.225.24.16 (5 Mar 2003 23:22:48 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail