void ThreadExe(void *pParam) { NetworkInterface *p = (NetworkInterface *)pParam; p->CapturePacket(); _endthread(); }
//------------------------------------------------------------------------- DWORD WINAPI ThreadProc (PVOID pParam) { NetworkInterface *p = (NetworkInterface *)pParam; p->CapturePacket(); return 0; }