Returns the number of the packets lost by the network adapter.
Syntax:
function Get_Missed(HiValue: PUINT): UINT;
Parameters:
HiValue
[out] The pointer to the variable, in which the high DWORD of the result will be
stored. May be set to NULL, if the application does not need these data.
Return values:
If the function succeeds, the return value will be the low-order doubleword of the number of the
packets lost by the network adapter, and if HiValue is non-NULL, the function will put the
high-order doubleword of this number into the variable pointed to by that parameter.
Description:
Use Get_Missed after opening the network adapter and executing the
UpdateAdapterStatistics method.
This method returns the value of the HNAdapter internal packets
counter. This value is set with the PSSDK internal driver packets counter value syncronously
after UpdateAdapterStatistics method call. So, to get the latest
packets counter value you should call Get_Missed immediately after
UpdateAdapterStatistics method call.
To get the network adapter statistics synchronously, please do the following:
procedure GetAdapterStat();
var
Stat : ULARGE_INTEGER;
begin
// Refresh the adapter statistics synchronously
HNAdapter.UpdateAdapterStatistics();
// Display the adapter statistics
Stat.LowPart := HNAdapter.Get_Missed(@Stat.HighPart);
NdisMissed.Caption := IntToStr(Stat.QuadPart);
Stat.LowPart := HNAdapter.Get_RecvWithErr(@Stat.HighPart);
NdisRecvWithErr.Caption := IntToStr(Stat.QuadPart);
Stat.LowPart := HNAdapter.Get_RecvWithoutErr(@Stat.HighPart);
NdisRecvWithoutErr.Caption := IntToStr(Stat.QuadPart);
Stat.LowPart := HNAdapter.Get_TranWithErr(@Stat.HighPart);
NdisTranWithErr.Caption := IntToStr(Stat.QuadPart);
Stat.LowPart := HNAdapter.Get_TranWithoutErr(@Stat.HighPart);
NdisTranWithoutErr.Caption := IntToStr(Stat.QuadPart);
end;