Process Hacker
nettools.h File Reference
#include <windowsx.h>
#include <phdk.h>
#include <phappresource.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <iphlpapi.h>
#include <icmpapi.h>
#include "resource.h"

Go to the source code of this file.

Data Structures

struct  _NETWORK_OUTPUT_CONTEXT
 

Macros

#define CINTERFACE
 
#define COBJMACROS
 
#define PLUGIN_NAME   L"ProcessHacker.NetworkTools"
 
#define SETTING_NAME_TRACERT_WINDOW_POSITION   (PLUGIN_NAME L".WindowPosition")
 
#define SETTING_NAME_TRACERT_WINDOW_SIZE   (PLUGIN_NAME L".WindowSize")
 
#define SETTING_NAME_PING_WINDOW_POSITION   (PLUGIN_NAME L".PingWindowPosition")
 
#define SETTING_NAME_PING_WINDOW_SIZE   (PLUGIN_NAME L".PingWindowSize")
 
#define SETTING_NAME_PING_TIMEOUT   (PLUGIN_NAME L".PingMaxTimeout")
 
#define ICMP_BUFFER_SIZE(EchoReplyLength, Buffer)   (ULONG)(((EchoReplyLength) + (Buffer)->Length) + 8 + sizeof(IO_STATUS_BLOCK))
 
#define NTM_RECEIVEDTRACE   (WM_APP + NETWORK_ACTION_TRACEROUTE)
 
#define NTM_RECEIVEDWHOIS   (WM_APP + NETWORK_ACTION_WHOIS)
 
#define NTM_RECEIVEDFINISH   (WM_APP + NETWORK_ACTION_FINISH)
 

Typedefs

typedef enum _PH_NETWORK_ACTION PH_NETWORK_ACTION
 
typedef struct
_NETWORK_OUTPUT_CONTEXT 
NETWORK_OUTPUT_CONTEXT
 
typedef struct
_NETWORK_OUTPUT_CONTEXT
PNETWORK_OUTPUT_CONTEXT
 

Enumerations

enum  _PH_NETWORK_ACTION { NETWORK_ACTION_PING, NETWORK_ACTION_TRACEROUTE, NETWORK_ACTION_WHOIS, NETWORK_ACTION_FINISH }
 

Functions

NTSTATUS PhNetworkPingDialogThreadStart (_In_ PVOID Parameter)
 
VOID PerformNetworkAction (_In_ PH_NETWORK_ACTION Action, _In_ PPH_NETWORK_ITEM NetworkItem)
 
NTSTATUS NetworkPingThreadStart (_In_ PVOID Parameter)
 
NTSTATUS NetworkTracertThreadStart (_In_ PVOID Parameter)
 
NTSTATUS NetworkWhoisThreadStart (_In_ PVOID Parameter)
 
VOID NTAPI ShowOptionsCallback (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
INT_PTR CALLBACK NetworkOutputDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK OptionsDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 

Variables

PPH_PLUGIN PluginInstance
 

Macro Definition Documentation

#define CINTERFACE

Definition at line 30 of file nettools.h.

#define COBJMACROS

Definition at line 31 of file nettools.h.

#define ICMP_BUFFER_SIZE (   EchoReplyLength,
  Buffer 
)    (ULONG)(((EchoReplyLength) + (Buffer)->Length) + 8 + sizeof(IO_STATUS_BLOCK))

Definition at line 55 of file nettools.h.

#define NTM_RECEIVEDFINISH   (WM_APP + NETWORK_ACTION_FINISH)

Definition at line 70 of file nettools.h.

#define NTM_RECEIVEDTRACE   (WM_APP + NETWORK_ACTION_TRACEROUTE)

Definition at line 68 of file nettools.h.

#define NTM_RECEIVEDWHOIS   (WM_APP + NETWORK_ACTION_WHOIS)

Definition at line 69 of file nettools.h.

#define PLUGIN_NAME   L"ProcessHacker.NetworkTools"

Definition at line 43 of file nettools.h.

#define SETTING_NAME_PING_TIMEOUT   (PLUGIN_NAME L".PingMaxTimeout")

Definition at line 48 of file nettools.h.

#define SETTING_NAME_PING_WINDOW_POSITION   (PLUGIN_NAME L".PingWindowPosition")

Definition at line 46 of file nettools.h.

#define SETTING_NAME_PING_WINDOW_SIZE   (PLUGIN_NAME L".PingWindowSize")

Definition at line 47 of file nettools.h.

#define SETTING_NAME_TRACERT_WINDOW_POSITION   (PLUGIN_NAME L".WindowPosition")

Definition at line 44 of file nettools.h.

#define SETTING_NAME_TRACERT_WINDOW_SIZE   (PLUGIN_NAME L".WindowSize")

Definition at line 45 of file nettools.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
NETWORK_ACTION_PING 
NETWORK_ACTION_TRACEROUTE 
NETWORK_ACTION_WHOIS 
NETWORK_ACTION_FINISH 

Definition at line 59 of file nettools.h.

Function Documentation

INT_PTR CALLBACK NetworkOutputDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)
NTSTATUS NetworkPingThreadStart ( _In_ PVOID  Parameter)
NTSTATUS NetworkTracertThreadStart ( _In_ PVOID  Parameter)

Definition at line 59 of file tracert.c.

NTSTATUS NetworkWhoisThreadStart ( _In_ PVOID  Parameter)

Definition at line 82 of file whois.c.

INT_PTR CALLBACK OptionsDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 47 of file options.c.

VOID PerformNetworkAction ( _In_ PH_NETWORK_ACTION  Action,
_In_ PPH_NETWORK_ITEM  NetworkItem 
)

Definition at line 382 of file output.c.

NTSTATUS PhNetworkPingDialogThreadStart ( _In_ PVOID  Parameter)

Definition at line 710 of file ping.c.

VOID NTAPI ShowOptionsCallback ( _In_opt_ PVOID  Parameter,
_In_opt_ PVOID  Context 
)

Definition at line 285 of file main.c.

Variable Documentation

PPH_PLUGIN PluginInstance

Definition at line 113 of file main.c.