![]() |
SocketThread() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: SocketThreadManager.h |
static DWORD SocketThread( LPVOID lpParameter);
Our thread function
try { //Get the address of our data ThreadData* pData; pData=(ThreadData*)lpParameter; //Create the window pData->hWindowHandle=CreateWindowEx(0,CAsyncSocket_Class,SOCKET_WINDOW_NAME, WS_OVERLAPPED,0,0,0,0,0,NULL,pData->hInstance,NULL); //Alert we are done SetEvent(pData->hEvent); //Check we have this window if (pData->hWindowHandle) { //Run a message map MSG msg; while (GetMessage(&msg,NULL,0,0)) { //Translate and dispatch TranslateMessage(&msg); DispatchMessage(&msg); } } return FALSE; } ERROR_HANDLER_STATIC_RETURN(CSocketThreadManager_Class,"SocketThread",TRUE)
![]() |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001. |