OID_GEN_LAST_CHANGE

As a query, use the OID_GEN_LAST_CHANGE OID to determine the time of the last operational state change of a network interface (ifLastChange from RFC 2863).

Version Information

Windows Vista and later
Supported.

NDIS 6.0 and later miniport drivers
Not requested. For NDIS interface providers only.

Remarks

Only NDIS network interface providers, and therefore not miniport drivers or filter drivers, must support this OID as an OID request.

This OID returns the time, starting from the last computer restart, when the interface entered its current operational state. For more information about the operational state, see NDIS_STATUS_OPER_STATUS and OID_GEN_OPERATIONAL_STATUS. To get the current time, an interface provider can call the NdisGetSystemUpTimeEx function.

If the current operational state was entered before the last reinitialization of the interface, this value should be zero. . If the interface provider does not track operational state change time, the value should be zero.

If the interface provider returns NDIS_STATUS_SUCCESS, the result of the query is a ULONG64 value that specifies the state change time, in milliseconds, since the last computer restart.

Requirements

Header

Ntddndis.h (include Ndis.h)

See also

OID_GEN_OPERATIONAL_STATUS

NDIS_STATUS_OPER_STATUS

NdisGetSystemUpTimeEx

NDIS Network Interface OIDs