文件名称:NPort
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2014-05-29
- 文件大小:
- 35kb
- 下载次数:
- 0次
- 提 供 者:
- wpu****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
VC实现的类似Windows Netstat命令查看开放端口的源码,并不是一个完整的程序。NPort.cpp : 显示端口及对应的文件名,相当于Netstat -noa命令. 适用于XP及较高级版本.所用的iphlpapi.dll中的函数原型定义,生成IP地址字符串。以下为与TCP相关的结构:
typedef struct tagMIB_TCPEXROW{
DWORD dwState // 连接状态.
DWORD dwLocalAddr // 本地计算机地址.
DWORD dwLocalPort // 本地计算机端口.
DWORD dwRemoteAddr // 远程计算机地址.
DWORD dwRemotePort // 远程计算机端口.
DWORD dwProcessId
} MIB_TCPEXROW, *PMIB_TCPEXROW -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
typedef struct tagMIB_TCPEXROW{
DWORD dwState // 连接状态.
DWORD dwLocalAddr // 本地计算机地址.
DWORD dwLocalPort // 本地计算机端口.
DWORD dwRemoteAddr // 远程计算机地址.
DWORD dwRemotePort // 远程计算机端口.
DWORD dwProcessId
} MIB_TCPEXROW, *PMIB_TCPEXROW -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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
NPort\NPort.cpp
.....\NPort.dsp
.....\NPort.dsw
.....\NPort.ncb
.....\NPort.opt
.....\NPort.plg
NPort