huksley
Contributor
Contributor

Sigar.getProcPort not working on Windows 7 or Windows 2008

It is because native part (sigar_get_proc_port) in win32 implementation depends on AllocateAndGetTcpExTableFromStack
from Iphlpapi.dll

It is deprecated and not available in Windows 7, Windows 2008
http://msdn.microsoft.com/en-us/library/aa365804%28v=vs.85%29.aspx

There is two options, either use GetTcpTable2 or GetExtendedTcpTable.

The best choice seems to use GetExtendedTcpTable because it is supported beginning with XP SP2, Windows 2003 SP1 however its api is fairly complex and involves new structures to be defined.
0 Kudos
1 Reply
dougm_hyperic
VMware Employee
VMware Employee

Thanks for digging into this, I've opened a ticket so we can look into this further: https://jira.hyperic.com/browse/SIGAR-229
0 Kudos