Introduction - If you have any usage issues, please Google them yourself
VC to achieve a similar Windows Netstat command to check open ports of the source, not a complete program. NPort.cpp: display port and the corresponding file name, which is equivalent Netstat-noa command for XP and higher versions of the definition of the function prototype iphlpapi.dll used in generating IP address string.. The following is the structure associated with the TCP:
typedef struct tagMIB_TCPEXROW {
DWORD dwState // connection status.
DWORD dwLocalAddr // local computer address.
DWORD dwLocalPort // local computer port.
DWORD dwRemoteAddr // remote computer address.
DWORD dwRemotePort // remote computer port.
DWORD dwProcessId
} MIB_TCPEXROW,* PMIB_TCPEXROW