类型:转载 责任编辑:asp 日期:2007/03/01
dim echo as icmp_echo_reply
需要引用什么部件?
谢谢
推荐阅读
给你个地址去看看一段代码,http://www.vbcode.com/asp/showsn.asp?theid=233
public type icmp_echo_reply
address as long replying address
status as long reply status code
roundtriptime as long round-trip time, in milliseconds
datasize as integer reply data size. always an int.
reserved as integer reserved for future use
datapointer as long pointer to the data in data below
options as icmp_options reply options, used in tracert
returneddata as string * 256 the returned data follows the
reply message. the data string
must be sufficiently large enough
to hold the returned data.
end type
public declare function icmpsendecho lib "icmp.dll" _
(byval icmphandle as long, _
byval destinationaddress as long, _
byval requestdata as string, _
byval requestsize as long, _
requestoptions as icmp_options, _
replybuffer as icmp_echo_reply, _
byval replysize as long, _
byval timeout as long) as long