| CAsyncSocket:: RegisterWindow() |

Private Function | Declared in: AsyncSocket.h

## Declaration

    static BOOL RegisterWindow();

## Description

Register our window

## Function Body

    try
    {
        WNDCLASS wc;

        /* Fill in window class structure with parameters that describe the       */
        /* main window.                                                           */

        wc.style = 0;                                         /* Class style(s).                    */
        wc.lpfnWndProc = (WNDPROC)SocketMessageHandler;       /* Function to retrieve messages for  */
                                            /* windows of this class.             */
        wc.cbClsExtra = 0;                  /* No per-class extra data.           */
        wc.cbWndExtra = 0;                  /* No per-window extra data.          */
        wc.hIcon = NULL;                    /* Icon name from .RC        */
        wc.hInstance = GetInstance();          /* Application that owns the class.   */
        wc.hCursor = NULL;
        wc.hbrBackground = NULL;
        wc.lpszMenuName =  NULL;   /* Name of menu resource in .RC file. */
        wc.lpszClassName = CAsyncSocket_Class ; /* Name used in call to CreateWindow. */

        /* Register the window class and return success/failure code. */

        return (RegisterClass(&wc));
    }
    ERROR_HANDLER_STATIC_RETURN(CAsyncSocket_Class,"RegisterWindow",FALSE)

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