Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ScreenSaverProc function

Receives messages sent to the specified screen saver window.

Syntax


LONG ScreenSaverProc(
   HWND   hWnd,
   UINT   message,
   WPARAM wParam,
   LPARAM lParam
);

Parameters

hWnd

Type: HWND

An identifier of the window.

message

Type: UINT

A message sent to the screen saver window.

wParam

Type: WPARAM

Additional message-specific information.

lParam

Type: LPARAM

Additional message-specific information.

Return value

Type: LONG

The return value is the result of the message processing and depends on the message sent.

Remarks

A screen saver'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 the EXPORTS statement in the application's module-definition (.def) file.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Scrnsave.h

Library

Scrnsave.lib

DLL

None

 

 

Community Additions

ADD
Show:
© 2015 Microsoft