RegisterDialogClasses function

Registers any nonstandard window classes required by a screen saver's configuration dialog box.

Syntax

BOOL RegisterDialogClasses(
  HANDLE hInst
);

Parameters

hInst

Type: HANDLE

An identifier of an instance of the module registering the window classes.

Return Value

Type: BOOL

Returns nonzero if successful, or zero otherwise.

To retrieve extended error information, call GetLastError.

Remarks

The RegisterDialogClasses function should not be exported. It is called by routines defined in the Scrnsave.lib file.

If a screen saver does not register any special window classes for the configuration dialog box, the RegisterDialogClasses function must return TRUE.

Requirements

   
Windows version Windows XP [desktop apps only] Windows 2000 Server [desktop apps only]
Target Platform Windows
Header scrnsave.h
Library Scrnsave.lib
DLL None

See Also

ScreenSaverConfigureDialog