I am creating a firewall in which I am using netstat -o command to retrieve the number of comps that connected to my computer. Also i am scanning for the applications that are currently using my internet connection. But my application hangs on the statement


ret = WaitForSingleObject(proc.hprocess, INFINITE) where ret is defined as long

Plz help