InetClearQueue Example for C++ 5.0 and later

This is also the example for the InetQueueSize property.

void CNetCapDlg::TestQueue()
{
   TCHAR szText[80];
   int i, nComputer;
   long nSize, nTotal=0;
   for (i = 0; i < m_pRasterInet->GetSendListNum(); i++)
   {
      nComputer = m_pRasterInet->GetSendList(i);
      nSize = m_pRasterInet->GetInetQueueSize(nComputer);

      if (nSize > 0)
      {
         nTotal += m_pRasterInet->GetInetQueueSize(nComputer);

         if (nSize > (1024*10))
         {
            m_pRasterInet->InetClearQueue(nComputer);
         }
      }
   }
   wsprintf(szText, TEXT("%ld"), nTotal);
   AfxMessageBox(szText);
}