to: netsys2(抓住领头羊)
我理解了一下您刚才的话,SOCKET事件触发的消息直接发到了调用者的窗口,就是说把
OnNetEvent()函数放在上层程序中,然后上层程序就能收到触发的各种消息。
但我的意思是想把通信相关的部分放在DLL中,即想把SOCKET触发的各种消息在先作一些处理,再将必要的信息传到上层调用者。这样能做到吗?
This function is used to request that the Windows Sockets DLL should send a message to the window hWnd whenever it detects any of the network events specified by the
lEvent parameter. The message which should be sent is specified by the wMsg parameter. The socket for which notification is required is identified by s.