#include#include#defineNETWORK_ERROR-1#defineNETWORK_OK0#definePORT_MIN1#definePORT_MAX65535HANDLEhThread;DWORDhID;charhostname[30];intstarting_port=0;intending_port=0;intnopen=0;DWORDportscan();intmain(){intret;W