用GetIfEntry()函数可以获得每一块网卡的流入流出信息。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.
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.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货