| CSocketThreadManager:: GetIndexByHWND() |

Private Function | Declared in: SocketThreadManager.h

## Declaration

    int GetIndexByHWND(
        HWND hHandle) const;

## Description

Get the socket array position by the window handle

## Function Body

    try
    {
        for (int iCounter=0;iCounter<m_iThreadCount;++iCounter)
            if (m_pThreadData[iCounter].hWindowHandle==hHandle)
                //Return it
                return iCounter+1;

        //Nothing
        return 0;
    }
    ERROR_HANDLER_RETURN("GetIndexByHWND",0)

## 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.