InetSendCloseWinCmd Example for C++ 5.0 and later

short nRet;
CString csOut;

nRet = m_pRasterInet->InetSendCloseWinCmd(999, 1);
if((nRet != 0) && (nRet != ERROR_DATA_QUEUED))
{
   csOut.Format(TEXT("ERROR %d calling InetSendCloseWinCmd."), nRet);
   AfxMessageBox(csOut);
}
else
   AfxMessageBox(TEXT("InetSendCloseWinCmd Executed."));