* include/iphlpapi.h (GetExtendedTcpTable): Add prototype.

* include/iprtrmib.h (TCP_TABLE_CLASS, MIB_TCPROW_OWNER_PID,
	MIB_TCPTABLE_OWNER_PID, MIB_TCP6ROW_OWNER_PID,
	MIB_TCP6TABLE_OWNER_PID): Define.
	* lib/iphlpapi.def (GetExtendedTcpTable): Export.
This commit is contained in:
Corinna Vinschen 2008-07-14 15:55:48 +00:00
parent 5a0c7f1df9
commit c0bb6b5bd6
4 changed files with 49 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2008-07-14 Corinna Vinschen <corinna@vinschen.de>
* include/iphlpapi.h (GetExtendedTcpTable): Add prototype.
* include/iprtrmib.h (TCP_TABLE_CLASS, MIB_TCPROW_OWNER_PID,
MIB_TCPTABLE_OWNER_PID, MIB_TCP6ROW_OWNER_PID,
MIB_TCP6TABLE_OWNER_PID): Define.
* lib/iphlpapi.def (GetExtendedTcpTable): Export.
2008-06-25 Brandon Sneed <nivenh@sourceware.org> 2008-06-25 Brandon Sneed <nivenh@sourceware.org>
* include/winbase.h (GetProcessHandleCount, GetSystemRegistryQuota, * include/winbase.h (GetProcessHandleCount, GetSystemRegistryQuota,

View File

@ -37,6 +37,9 @@ DWORD WINAPI GetAdapterIndex(LPWSTR,PULONG);
DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO,PULONG); DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO,PULONG);
DWORD WINAPI GetBestInterface(IPAddr,PDWORD); DWORD WINAPI GetBestInterface(IPAddr,PDWORD);
DWORD WINAPI GetBestRoute(DWORD,DWORD,PMIB_IPFORWARDROW); DWORD WINAPI GetBestRoute(DWORD,DWORD,PMIB_IPFORWARDROW);
#if (_WIN32_WINNT >= 0x0501)
DWORD WINAPI GetExtendedTcpTable (PVOID,PDWORD,BOOL,ULONG,TCP_TABLE_CLASS,ULONG);
#endif
DWORD WINAPI GetFriendlyIfIndex(DWORD); DWORD WINAPI GetFriendlyIfIndex(DWORD);
DWORD WINAPI GetIcmpStatistics(PMIB_ICMP); DWORD WINAPI GetIcmpStatistics(PMIB_ICMP);
DWORD WINAPI GetIfEntry(PMIB_IFROW); DWORD WINAPI GetIfEntry(PMIB_IFROW);

View File

@ -39,6 +39,17 @@ extern "C" {
#define MIB_USE_CURRENT_TTL ((DWORD)-1) #define MIB_USE_CURRENT_TTL ((DWORD)-1)
#define MIB_USE_CURRENT_FORWARDING ((DWORD)-1) #define MIB_USE_CURRENT_FORWARDING ((DWORD)-1)
#define MIB_TCP_MAXCONN_DYNAMIC ((DWORD)-1) #define MIB_TCP_MAXCONN_DYNAMIC ((DWORD)-1)
typedef enum {
TCP_TABLE_BASIC_LISTENER,
TCP_TABLE_BASIC_CONNECTIONS,
TCP_TABLE_BASIC_ALL,
TCP_TABLE_OWNER_PID_LISTENER,
TCP_TABLE_OWNER_PID_CONNECTIONS,
TCP_TABLE_OWNER_PID_ALL,
TCP_TABLE_OWNER_MODULE_LISTENER,
TCP_TABLE_OWNER_MODULE_CONNECTIONS,
TCP_TABLE_OWNER_MODULE_ALL
} TCP_TABLE_CLASS, *PTCP_TABLE_CLASS;
typedef struct { typedef struct {
DWORD dwAddr; DWORD dwAddr;
DWORD dwIndex; DWORD dwIndex;
@ -188,6 +199,18 @@ typedef struct {
DWORD dwNumEntries; DWORD dwNumEntries;
MIB_TCPROW table[ANY_SIZE]; MIB_TCPROW table[ANY_SIZE];
} MIB_TCPTABLE, *PMIB_TCPTABLE; } MIB_TCPTABLE, *PMIB_TCPTABLE;
typedef struct {
DWORD dwState;
DWORD dwLocalAddr;
DWORD dwLocalPort;
DWORD dwRemoteAddr;
DWORD dwRemotePort;
DWORD dwOwningPid;
} MIB_TCPROW_OWNER_PID, *PMIB_TCPROW_OWNER_PID;
typedef struct {
DWORD dwNumEntries;
MIB_TCPROW_OWNER_PID table[ANY_SIZE];
} MIB_TCPTABLE_OWNER_PID, *PMIB_TCPTABLE_OWNER_PID;
typedef struct { typedef struct {
DWORD dwInDatagrams; DWORD dwInDatagrams;
DWORD dwNoPorts; DWORD dwNoPorts;
@ -203,6 +226,20 @@ typedef struct {
DWORD dwNumEntries; DWORD dwNumEntries;
MIB_UDPROW table[ANY_SIZE]; MIB_UDPROW table[ANY_SIZE];
} MIB_UDPTABLE, *PMIB_UDPTABLE; } MIB_UDPTABLE, *PMIB_UDPTABLE;
typedef struct {
UCHAR ucLocalAddr[16];
DWORD dwLocalScopeId;
DWORD dwLocalPort;
UCHAR ucRemoteAddr[16];
DWORD dwRemoteScopeId;
DWORD dwRemotePort;
DWORD dwState;
DWORD dwOwningPid;
} MIB_TCP6ROW_OWNER_PID, *PMIB_TCP6ROW_OWNER_PID;
typedef struct {
DWORD dwNumEntries;
MIB_TCP6ROW_OWNER_PID table[ANY_SIZE];
} MIB_TCP6TABLE_OWNER_PID, *PMIB_TCP6TABLE_OWNER_PID;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@ -15,6 +15,7 @@ GetAdapterIndex@8
GetAdaptersInfo@8 GetAdaptersInfo@8
GetBestInterface@8 GetBestInterface@8
GetBestRoute@12 GetBestRoute@12
GetExtendedTcpTable@24
GetFriendlyIfIndex@4 GetFriendlyIfIndex@4
GetIcmpStatistics@4 GetIcmpStatistics@4
GetIfEntry@4 GetIfEntry@4