How to obtain the network access destination using Windows API?

Zhu Jeremy 1 Reputation point
2020-11-03T08:42:55.1+00:00

Hello,

I want to monitor the destination of network access in my system, such as destination IP, domain and so on.
But I can't find a Windows API to help me achieve it.

In some other articles, I find that I can capture the network log by the third party SDK WinPcap.

Is there a method using API without installing any other package in my system?

Thanks.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,613 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 85,131 Reputation points
    2020-11-03T09:35:59.077+00:00

    You can see the source of Netstatp : Netstatp.c
    which is a simplified version of TCPView


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.