CPL_INITCPL_INIT*
*Contents  *Index  *Topic Contents
*Previous Topic: CPL_GETCOUNT
*Next Topic: CPL_INQUIRE

CPL_INIT

Sent to the CPlApplet function of a Control Panel application to prompt it to perform global initialization, especially memory allocation.

Syntax

CPL_INIT 

Return Values

If initialization succeeds, the CPlApplet function should return nonzero. Otherwise, it should return zero.

If CPlApplet returns zero, the controlling application ends communication and releases the DLL containing the Control Panel application.

Remarks

Because this is the only way a Control Panel application can signal an error condition, the application should allocate memory in response to this message.

This message is sent immediately after the DLL containing the application is loaded.

See Also

FreeLibrary


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.