GetInterfaceActiveTimestampCapabilities function (iphlpapi.h)
Retrieves the currently enabled timestamp capabilities of a network adapter.
For more info, and code examples, see Packet timestamping.
Syntax
IPHLPAPI_DLL_LINKAGE DWORD GetInterfaceActiveTimestampCapabilities(
const NET_LUID *InterfaceLuid,
PINTERFACE_TIMESTAMP_CAPABILITIES TimestampCapabilites
);
Parameters
InterfaceLuid
Type: _In_ CONST NET_LUID*
The network locally unique identifier (LUID) of the network adapter for which currently enabled timestamp capabilities are to be retrieved.
TimestampCapabilites
Type: _Out_ PINTERFACE_TIMESTAMP_CAPABILITIES
If the function succeeds, then TimestampCapabilites returns a structure that describes the currently enabled timestamp capabilities.
Return value
Type: DWORD
If the function succeeds, then it returns NO_ERROR. If the network card corresponding to InterfaceLuid isn't timestamp-aware, then the function returns ERROR_NOT_SUPPORTED. If the network card driver advertises an unsupported timestamp configuration, then the function returns ERROR_BAD_DRIVER.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 20348 |
Minimum supported server | Windows 10 Build 20348 |
Target Platform | Windows |
Header | iphlpapi.h |
Library | Iphlpapi.lib |
DLL | Iphlpapi.dll |