我正在尝试用visual studio测量RTT。现在,当我调用函数时:
GetTcpRow(554, clientPort, MIB_TCP_STATE_ESTAB,(PMIB_TCPROW) serverConnectRow);
if (winStatus != ERROR_SUCCESS) {
wprintf
(L"\nGetTcpRow failed on the server established connection with %d",
winStatus);
goto bail;它将值1168返回给变量winStatus,然后打印消息nGetTcpRow failed on the server established connection with 1168并停止运行。
有人知道问题出在哪里吗?函数GetTcpRow是做什么的?
谢谢。
发布于 2013-01-20 01:58:11
谷歌在这里找到了GetTcpRow()的代码
http://msdn.microsoft.com/en-us/library/windows/desktop/bb485735(v=vs.85).aspx代码中有多个错误分支。您需要查找各种返回代码的值,以查看发生了哪一条错误。
https://stackoverflow.com/questions/14416248
复制相似问题