if(PacketSetNumWrites(lpAdapter,2)==FALSE)
{
::AfxMessageBox("warning: Unable to send more than one packet in
a single write!");
return;
}
//循环1000次
for(int q=0;q<=1000;q++)
{
if(PacketSendPacket(lpAdapter, lpPacket, TRUE)==FALSE)
{
::AfxMessageBox("Error sending the packets!");
return;
}
}