Thursday, 15 February 2018

c - LNK2019 unresolved external symbol _GetExtendedTcpTable@24

I am trying to use GetExtendedTcpTable function, but when I want to compile this program:




#include 
#include
#include

void main() {
PVOID x = (PVOID)malloc(10000);
PDWORD size = 10000;
DWORD result = GetExtendedTcpTable(
&x,

&size,
TRUE,
AF_INET,
TCP_TABLE_OWNER_PID_ALL,
NULL);
}


linker throws an error





LNK2019 unresolved external symbol _GetExtendedTcpTable@24 referenced in function _main




Why is this error, why I cant use GetExtendedTcptable?

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...