| CSocketThreadManager:: SocketThread() |

Private Function | Declared in: SocketThreadManager.h

## Declaration

    static DWORD SocketThread(
        LPVOID lpParameter);

## Description

Our thread function

## Function Body

    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)

## See Also

Class Overview | CSpoofBase | Hierarchy Chart

This web site was generated using Surveyor V4.50.811.1. Click here for more information. | Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001.