EWDPing Ping/TraceRoute Application

EWDPing Variables EWDPing contains the following variables in EWDPingDlg:


char CurrentHostName[MAXHOSTNAME]
  • Local host name from system registry;
  • Valid for Microsoft WindowsNT 4.0 Winsock 2;
  • Might not be valid with other Winsock providers.


CString DefHost
  • Default host name for PING operations;
  • Set in EWDPingOptionsDlg.


char HostName[MAXHOSTNAME]
  • Name of host to PING;
  • From EWDPingDlg entry.


char icmpBuffer[MAX_PACKET]
  • General purpose buffer for ICMP operations.


int icmpDataLen
  • Length of ICMP data in icmpBuffer;
  • Does not include length of ICMP header.


unsigned long icmpIntervalCount
  • Number of times TimerInterval has been reached during an operation.


unsigned long icmpMaxIntervals
  • Maximum icmpIntervalCount.


int icmpPingTTL
  • TTL index for next trace operation;
  • Set to 0 for PING operation;
  • Selects next node in the Internet tree to PING on the way to the TraceTarget.


BOOL icmpTracing
  • TRUE = trace operation;
  • FALSE = PING operation.


int IconState
  • The next animated icon to display;
  • Used as an index into the Icon's making up the animated icon.


CImageList largeImageList
  • Large icon (32 x 32) list;
  • Used by m_TraceList.


CString LocalDomainName
  • Domain Name for local host from system registry;
  • Valid for Microsoft WindowsNT 4.0 Winsock 2;
  • Might not be valid with other Winsock providers.


CString LocalNameServer
  • Local Name Server name from system registry;
  • Valid for Microsoft WindowsNT 4.0 Winsock 2;
  • Might not be valid with other Winsock providers.


LPSTR pIcmpBuffer
  • FAR pointer to icmpBuffer.


LPIcmpHeader pIcmpHeader
  • Pointer to an IcmpHeader structure;
  • Mapped to the current ICMP buffer.


CIcmp PingSocket
  • CIcmp object;
  • Derived from CSocket object;


CImageList smallImageList
  • List of small (16 x 16) icons;
  • Used by m_TraceList.


BOOL TimerActive
  • TRUE = timer operation is running;
  • FALSE = timer is idle.


int TimerInterval
  • Time, in mSec., for timer count.


int TimerNumber
  • Timer assigned by operating system;
  • Valid only when TimerActive is TRUE.


struct in_addr TraceTarget
  • Address of the endpoint of a trace operation;
  • Initialized to HostName at start of trace operation.


WSADATA wsaData
  • Winsock data returned from operating system.


Copyright (c) 1997,1998. EarthWalk Designs.
Direct all inquiries to:Jay Wheeler at EarthWalkDesigns.com