diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-03 14:04:30 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-03 14:04:30 +0000 |
commit | 22f052f313379a8e864e61fdd3593126e088ded4 (patch) | |
tree | 4b089d5d0e5a75a3af00d5cfb256065c82c23d9c /plugins/Ping/src/icmp.h | |
parent | a7c5d18647c0dd188eaa723df3f73e4250a61920 (diff) |
removed not used headers
added version info
fixed crash #169 (patch from $ergi0)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3873 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Ping/src/icmp.h')
-rw-r--r-- | plugins/Ping/src/icmp.h | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/plugins/Ping/src/icmp.h b/plugins/Ping/src/icmp.h index 984fd88fe9..e3da22691b 100644 --- a/plugins/Ping/src/icmp.h +++ b/plugins/Ping/src/icmp.h @@ -3,32 +3,6 @@ #ifndef _ICMP_H
#define _ICMP_H
-//#include <windows.h>
-#include <iphlpapi.h>
-//#include <icmpapi.h>
-
-// Structures required to use functions in ICMP.DLL
-/*
-typedef struct {
- unsigned char Ttl; // Time To Live
- unsigned char Tos; // Type Of Service
- unsigned char Flags; // IP header flags
- unsigned char OptionsSize; // Size in bytes of options data
- unsigned char *OptionsData; // Pointer to options data
-} IP_OPTION_INFORMATION, * PIP_OPTION_INFORMATION;
-
-typedef struct {
- DWORD Address; // Replying address
- unsigned long Status; // Reply status
- unsigned long RoundTripTime; // RTT in milliseconds
- unsigned short DataSize; // Echo data size
- unsigned short Reserved; // Reserved for system use
- void *Data; // Pointer to the echo data
- IP_OPTION_INFORMATION Options; // Reply options
- unsigned char ReplyData[8];
-} IP_ECHO_REPLY, * PIP_ECHO_REPLY;
-
-*/
typedef HANDLE (WINAPI* pfnHV)(VOID);
typedef BOOL (WINAPI* pfnBH)(HANDLE);
typedef DWORD (WINAPI* pfnDHDPWPipPDD)(HANDLE, HANDLE, FARPROC, PVOID, IPAddr, LPVOID, WORD, PIP_OPTION_INFORMATION, LPVOID, DWORD, DWORD);
@@ -36,9 +10,9 @@ typedef DWORD (WINAPI* pfnDHDPWPipPDD)(HANDLE, HANDLE, FARPROC, PVOID, IPAddr, L class ICMP {
protected:
pfnHV pIcmpCreateFile;
- pfnBH pIcmpCloseHandle;
- pfnDHDPWPipPDD pIcmpSendEcho2;
-
+ pfnBH pIcmpCloseHandle;
+ pfnDHDPWPipPDD pIcmpSendEcho2;
+
HMODULE hDLL;
HANDLE hIP;
|