Re: GetExtendedTcpTable not available



I'm running XP Pro SP2 using Visual Studio .net 2003 Visual C++ with
Platform SDK Win2003 SP1.
I have also been trying without success to use the GetExtendedTcpTable.

I've modified iphlpapi.h to have to correct declaration(?) and also the
typedefs that go along with it, which should be there already.
My IpHlpApi.dll version is 5.1.2600.2180, I believe the latest.
This file was manually updated as even after installing the PSDK I had
a 5.0.something version which did not show as having XP iphlp functions
in it.

Looking at the iphlpapi.lib file from PSDK in notepad I see entries for
GetExtendedTcpTable as well as other XP specific funcs like
alloccateandgettcpextable.

Linker has been set (under Command Line & Additional Dependencies) to
include iphlpapi.lib from the SDK.

Program compiles fine but during linking I get this message:
ip2proc001.obj : error LNK2019: unresolved external symbol
_GetExtendedTcpTable referenced in function _main
Debug/ip2proc001.exe : fatal error LNK1120: 1 unresolved externals

Program compiles and links fine when using a func like GetTcpTable,
however the prog I'm writing is useless to me unless I have a port to
process mapping. I suppose I can try AllocateandGetTcpExTable
statically but if I'm getting tripped up on this I don't know I won't
encounter simliar probs. I have tried dynamically linking
AllocateandGetTcpExTable per Mark Russovich's netstatp example to no
avail.

Del

.



Relevant Pages

  • Platform SDK for Visual Studio 2005
    ... I am currently migrating my Visual C++ 6.0 applications to Visual Studio ... I am getting compiler errors involving the VS2005's platform SDK. ... Defaulting to 0x0502 (Windows Server 2003) ...
    (microsoft.public.dotnet.languages.vc)
  • Re: First time Visual C++ 2005 Express Edition help!
    ... not a library file. ... your issue is that Visual C++ 2005 Express Edition does not ship ... Download the latest Platform SDK from Microsoft. ... for Visual Studio to allow it to search in the folders that have ...
    (microsoft.public.vsnet.general)
  • Re: Visual C++ Upgrades
    ... Visual Studio" start menu item under the Platform SDK Visual Studio ... upgrade to a newer version of Visual C++ to get those as Carl mentioned. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: side-by_side error on Vista
    ... Platform SDK Jan 2006 ... I'm compiling an application on an XP machine and testing it on Vista. ... I tried just copying the newer DLLs to the app's startup directory, ... look in the directory where Visual Studio is installed for the file redist.txt which will tell you what files you are allowed to redistribute with your application. ...
    (microsoft.public.win32.programmer.ui)
  • Debugging Problem
    ... I am having all kinds of nightmares trying to get Visual Studio ... .Net working on my "work machine" which is a portable. ... The program compiles fine, but before it launches IE, it displays the ...
    (microsoft.public.dotnet.framework.aspnet)