Class CSocketThreadManager::
SocketThread()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: GetWindowHandleNext page: SpawnThreads    Show member index
Private Function Declared in:
SocketThreadManager.h

'Declaration' icon -- Shortcut to top of page. Declaration

static DWORD SocketThread(
    LPVOID lpParameter);

'Description' icon -- Shortcut to top of page. Description

Our thread function

'Function Body' icon -- Shortcut to top of page. 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' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CSpoofBase  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.