Thursday, February 15, 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

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...