Packet Sniffer SDK VCL Edition

HNAdapter :: Methods :: Get_RejectCount

 Previous Next

Returns the number of packets rejected by the user-settable packet filter.

Syntax:

function Get_RejectCount(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 packets rejected by the user-settable packet filter, 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_RejectCount after opening the network adapter and executing the UpdateUserStatistics 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 UpdateUserStatistics method call. So, to get the latest packets counter value you should call Get_RejectCount immediately after UpdateUserStatistics method call.

See also:HNAdapter, OpenAdapter, UpdateUserStatistics