如果是通过modem拨号连接的呢?怎么读取网络流量?dwIndex给多少?
dwIndex
Specifies the index that identifies the interface.
msdn仅仅这样说,我看你的帖子,dwIndex是从0开始的网络接口。但是这个接口仅指网卡吗?modem拨号连接这种怎么算?
谢谢!
GetIfEntry
The GetIfEntry function retrieves information for the specified interface on the local computer.
DWORD GetIfEntry(
PMIB_IFROW pIfRow // pointer to interface entry
);
Parameters
pIfRow
[in] Pointer to a MIB_IFROW structure that receives information for an interface on the local computer. Set the dwIndex member of MIB_IFROW to the index of the interface for which to retrieve information.
Return Values
If the function succeeds, the return value is NO_ERROR.
If the function fails, use FormatMessage to obtain the message string for the returned error.