23 #ifndef _NETADAPTER_H_
24 #define _NETADAPTER_H_
26 #pragma comment(lib, "Iphlpapi.lib")
28 #define PLUGIN_NAME L"ProcessHacker.NetAdapters"
29 #define SETTING_NAME_ENABLE_NDIS (PLUGIN_NAME L".EnableNDIS")
30 #define SETTING_NAME_INTERFACE_LIST (PLUGIN_NAME L".InterfaceList")
35 #include <phappresource.h>
96 _In_ HWND ParentHandle
101 _In_ PPH_NETADAPTER_ENTRY AdapterInfo
107 #define BITS_IN_ONE_BYTE 8
108 #define NDIS_UNIT_OF_MEASUREMENT 100
111 _Inout_ PMIB_IF_ROW2 Row
116 _Inout_
PGUID InterfaceGuid,
117 _Out_opt_ PWSTR InterfaceDescription,
118 _Inout_ PSIZE_T LengthAddress,
128 _In_ HANDLE DeviceHandle
132 _In_ HANDLE DeviceHandle,
133 _Out_opt_ PUINT MajorVersion,
134 _Out_opt_ PUINT MinorVersion
138 _Inout_ PPH_NETADAPTER_SYSINFO_CONTEXT Context
142 _In_ HANDLE DeviceHandle,
143 _Out_ PNDIS_STATISTICS_INFO Info
147 _In_ HANDLE DeviceHandle,
148 _Out_ PNDIS_LINK_STATE State
152 _In_ HANDLE DeviceHandle,
153 _Out_ PNDIS_PHYSICAL_MEDIUM Medium
157 _In_ HANDLE DeviceHandle,
158 _Out_ PULONG64 LinkSpeed
162 _In_ HANDLE DeviceHandle,
167 _Inout_ PPH_NETADAPTER_SYSINFO_CONTEXT Context
171 _Inout_ PPH_NETADAPTER_SYSINFO_CONTEXT Context
174 #endif _NETADAPTER_H_