Process Hacker
|
#include <phdk.h>
#include <phappresource.h>
#include <ws2def.h>
#include <ws2ipdef.h>
#include <ws2tcpip.h>
#include <iphlpapi.h>
#include <nldef.h>
#include <netioapi.h>
#include "resource.h"
Go to the source code of this file.
Data Structures | |
struct | _PH_NETADAPTER_ENTRY |
struct | _PH_NETADAPTER_CONTEXT |
struct | _PH_NETADAPTER_SYSINFO_CONTEXT |
Macros | |
#define | PLUGIN_NAME L"ProcessHacker.NetAdapters" |
#define | SETTING_NAME_ENABLE_NDIS (PLUGIN_NAME L".EnableNDIS") |
#define | SETTING_NAME_INTERFACE_LIST (PLUGIN_NAME L".InterfaceList") |
#define | CINTERFACE |
#define | COBJMACROS |
#define | BITS_IN_ONE_BYTE 8 |
#define | NDIS_UNIT_OF_MEASUREMENT 100 |
Typedefs | |
typedef struct _PH_NETADAPTER_ENTRY | PH_NETADAPTER_ENTRY |
typedef struct _PH_NETADAPTER_ENTRY * | PPH_NETADAPTER_ENTRY |
typedef struct _PH_NETADAPTER_CONTEXT | PH_NETADAPTER_CONTEXT |
typedef struct _PH_NETADAPTER_CONTEXT * | PPH_NETADAPTER_CONTEXT |
typedef struct _PH_NETADAPTER_SYSINFO_CONTEXT | PH_NETADAPTER_SYSINFO_CONTEXT |
typedef struct _PH_NETADAPTER_SYSINFO_CONTEXT * | PPH_NETADAPTER_SYSINFO_CONTEXT |
typedef ULONG(WINAPI * | _GetIfEntry2 )(_Inout_ PMIB_IF_ROW2 Row) |
typedef ULONG(WINAPI * | _GetInterfaceDescriptionFromGuid )(_Inout_ PGUID InterfaceGuid, _Out_opt_ PWSTR InterfaceDescription, _Inout_ PSIZE_T LengthAddress, PVOID Unknown1, PVOID Unknown2) |
Functions | |
VOID | LoadAdaptersList (_Inout_ PPH_LIST FilterList, _In_ PPH_STRING String) |
VOID | ShowOptionsDialog (_In_ HWND ParentHandle) |
VOID | NetAdapterSysInfoInitializing (_In_ PPH_PLUGIN_SYSINFO_POINTERS Pointers, _In_ PPH_NETADAPTER_ENTRY AdapterInfo) |
BOOLEAN | NetworkAdapterQuerySupported (_In_ HANDLE DeviceHandle) |
BOOLEAN | NetworkAdapterQueryNdisVersion (_In_ HANDLE DeviceHandle, _Out_opt_ PUINT MajorVersion, _Out_opt_ PUINT MinorVersion) |
PPH_STRING | NetworkAdapterQueryName (_Inout_ PPH_NETADAPTER_SYSINFO_CONTEXT Context) |
NTSTATUS | NetworkAdapterQueryStatistics (_In_ HANDLE DeviceHandle, _Out_ PNDIS_STATISTICS_INFO Info) |
NTSTATUS | NetworkAdapterQueryLinkState (_In_ HANDLE DeviceHandle, _Out_ PNDIS_LINK_STATE State) |
BOOLEAN | NetworkAdapterQueryMediaType (_In_ HANDLE DeviceHandle, _Out_ PNDIS_PHYSICAL_MEDIUM Medium) |
NTSTATUS | NetworkAdapterQueryLinkSpeed (_In_ HANDLE DeviceHandle, _Out_ PULONG64 LinkSpeed) |
ULONG64 | NetworkAdapterQueryValue (_In_ HANDLE DeviceHandle, _In_ NDIS_OID OpCode) |
MIB_IF_ROW2 | QueryInterfaceRowVista (_Inout_ PPH_NETADAPTER_SYSINFO_CONTEXT Context) |
MIB_IFROW | QueryInterfaceRowXP (_Inout_ PPH_NETADAPTER_SYSINFO_CONTEXT Context) |
Variables | |
PPH_PLUGIN | PluginInstance |
PPH_LIST | NetworkAdaptersList |
HMODULE | IphlpHandle |
_GetIfEntry2 | GetIfEntry2_I |
_GetInterfaceDescriptionFromGuid | GetInterfaceDescriptionFromGuid_I |
#define SETTING_NAME_ENABLE_NDIS (PLUGIN_NAME L".EnableNDIS") |
#define SETTING_NAME_INTERFACE_LIST (PLUGIN_NAME L".InterfaceList") |
typedef ULONG(WINAPI* _GetIfEntry2)(_Inout_ PMIB_IF_ROW2 Row) |
typedef ULONG(WINAPI* _GetInterfaceDescriptionFromGuid)(_Inout_ PGUID InterfaceGuid, _Out_opt_ PWSTR InterfaceDescription, _Inout_ PSIZE_T LengthAddress, PVOID Unknown1, PVOID Unknown2) |
typedef struct _PH_NETADAPTER_CONTEXT PH_NETADAPTER_CONTEXT |
typedef struct _PH_NETADAPTER_ENTRY PH_NETADAPTER_ENTRY |
typedef struct _PH_NETADAPTER_SYSINFO_CONTEXT PH_NETADAPTER_SYSINFO_CONTEXT |
typedef struct _PH_NETADAPTER_CONTEXT * PPH_NETADAPTER_CONTEXT |
typedef struct _PH_NETADAPTER_ENTRY * PPH_NETADAPTER_ENTRY |
typedef struct _PH_NETADAPTER_SYSINFO_CONTEXT * PPH_NETADAPTER_SYSINFO_CONTEXT |
VOID LoadAdaptersList | ( | _Inout_ PPH_LIST | FilterList, |
_In_ PPH_STRING | String | ||
) |
VOID NetAdapterSysInfoInitializing | ( | _In_ PPH_PLUGIN_SYSINFO_POINTERS | Pointers, |
_In_ PPH_NETADAPTER_ENTRY | AdapterInfo | ||
) |
NTSTATUS NetworkAdapterQueryLinkSpeed | ( | _In_ HANDLE | DeviceHandle, |
_Out_ PULONG64 | LinkSpeed | ||
) |
NTSTATUS NetworkAdapterQueryLinkState | ( | _In_ HANDLE | DeviceHandle, |
_Out_ PNDIS_LINK_STATE | State | ||
) |
BOOLEAN NetworkAdapterQueryMediaType | ( | _In_ HANDLE | DeviceHandle, |
_Out_ PNDIS_PHYSICAL_MEDIUM | Medium | ||
) |
PPH_STRING NetworkAdapterQueryName | ( | _Inout_ PPH_NETADAPTER_SYSINFO_CONTEXT | Context | ) |
BOOLEAN NetworkAdapterQueryNdisVersion | ( | _In_ HANDLE | DeviceHandle, |
_Out_opt_ PUINT | MajorVersion, | ||
_Out_opt_ PUINT | MinorVersion | ||
) |
NTSTATUS NetworkAdapterQueryStatistics | ( | _In_ HANDLE | DeviceHandle, |
_Out_ PNDIS_STATISTICS_INFO | Info | ||
) |
BOOLEAN NetworkAdapterQuerySupported | ( | _In_ HANDLE | DeviceHandle | ) |
ULONG64 NetworkAdapterQueryValue | ( | _In_ HANDLE | DeviceHandle, |
_In_ NDIS_OID | OpCode | ||
) |
MIB_IF_ROW2 QueryInterfaceRowVista | ( | _Inout_ PPH_NETADAPTER_SYSINFO_CONTEXT | Context | ) |
MIB_IFROW QueryInterfaceRowXP | ( | _Inout_ PPH_NETADAPTER_SYSINFO_CONTEXT | Context | ) |
_GetIfEntry2 GetIfEntry2_I |
_GetInterfaceDescriptionFromGuid GetInterfaceDescriptionFromGuid_I |
PPH_PLUGIN PluginInstance |