ScreenSaverProc

3.1

  #include <scrnsave.h>    

  LRESULT ScreenSaverProc(hwnd, wmsg, wParam, lParam)    
  HWND hwnd; /* handle of screen saver window */
  unsigned wmsg; /* message */
  UINT wParam; /* first message parameter, */  
  LPARAM lParam; /* second message parameter */

The ScreenSaverProc function receives messages sent to a screen saver window.

Parameters

hwnd

Identifies the window.

wmsg

Specifies the message.

wParam

Specifies 16 bits of additional message-dependent information.

lParam

Specifies 32 bits of additional message-dependent information.

Return Value

The return value is the result of the message processing. It depends on the message that is processed.

Comments

A screen saver application's ScreenSaverProc window procedure should use the DefScreenSaverProc function instead of the DefWindowProc function to provide default message processing. The DefScreenSaverProc function passes any messages that do not affect screen saver operations to DefWindowProc.

The ScreenSaverProc function must be exported by including it in an EXPORTS statement in the application's module-definition (.DEF) file.

See Also

DefScreenSaverProc