#ifndef PING_H #define PING_H #include #include "resource.h" struct o { unsigned char Ttl, Tos, Flags, OptionsSize, *OptionsData; }; typedef struct { HINSTANCE hInst; HWND hwndMain; HANDLE (WINAPI *pIcmpCreateFile)(VOID); BOOL (WINAPI *pIcmpCloseHandle)(HANDLE); DWORD (WINAPI *pIcmpSendEcho)(HANDLE,DWORD,LPVOID,WORD,LPVOID, LPVOID,DWORD,DWORD); struct { DWORD Address; unsigned long Status, RoundTripTime; unsigned short DataSize, Reserved; void *Data; struct o Options; } E; HANDLE hIP; WSADATA wsa; HANDLE hIcmp; DWORD *dwIPAddr; struct hostent *phostent; DWORD d; char aa[100]; struct o I; } VARS; #endif .