src/libscrnsave/scrnsave.c
static BOOL RegisterClasses(void)
{
  WNDCLASS cls;
  
  cls.hCursor = NULL; 
  cls.hIcon = LoadIcon(hMainInstance, MAKEINTATOM(ID_APP)); 
  cls.lpszMenuName = NULL;
  cls.lpszClassName = CLASS_SCRNSAVE;
  cls.hbrBackground = GetStockObject(BLACK_BRUSH);
  cls.hInstance = hMainInstance;
  cls.style = CS_VREDRAW | CS_HREDRAW | CS_SAVEBITS | CS_PARENTDC;
  cls.lpfnWndProc = (WNDPROC) SysScreenSaverProc;
  cls.cbWndExtra = 0;
  cls.cbClsExtra = 0;
  
  if (!RegisterClass(&cls))
    return FALSE;

  return RegisterDialogClasses(hMainInstance);
}
/*
  Register screen saver window class and call user
  supplied hook.
 */
Register screen saver window class and call user
supplied hook.
Register screen saver window class and call user supplied hook .
static BOOL RegisterClasses(void)
{
  WNDCLASS cls;
  cls.hCursor = NULL; 
  cls.hIcon = LoadIcon(hMainInstance, MAKEINTATOM(ID_APP)); 
  cls.lpszMenuName = NULL;
  cls.lpszClassName = CLASS_SCRNSAVE;
  cls.hbrBackground = GetStockObject(BLACK_BRUSH);
  cls.hInstance = hMainInstance;
  cls.style = CS_VREDRAW | CS_HREDRAW | CS_SAVEBITS | CS_PARENTDC;
  cls.lpfnWndProc = (WNDPROC) SysScreenSaverProc;
  cls.cbWndExtra = 0;
  cls.cbClsExtra = 0;
  if (!RegisterClass(&cls))
    return FALSE;
  return RegisterDialogClasses(hMainInstance);
}
static BOOL RegisterClasses ( void ) { WNDCLASS cls ; cls . hCursor = NULL ; cls . hIcon = LoadIcon ( hMainInstance , MAKEINTATOM ( ID_APP ) ) ; cls . lpszMenuName = NULL ; cls . lpszClassName = CLASS_SCRNSAVE ; cls . hbrBackground = GetStockObject ( BLACK_BRUSH ) ; cls . hInstance = hMainInstance ; cls . style = CS_VREDRAW | CS_HREDRAW | CS_SAVEBITS | CS_PARENTDC ; cls . lpfnWndProc = ( WNDPROC ) SysScreenSaverProc ; cls . cbWndExtra = 0 ; cls . cbClsExtra = 0 ; if ( ! RegisterClass ( & cls ) ) return FALSE ; return RegisterDialogClasses ( hMainInstance ) ; }
Register screen saver window class and call user
supplied hook.
Register screen saver window class and call user supplied hook .