CPL_INIT

This message is sent to a Control Panel application to prompt it to perform global initialization, especially memory allocation.

At a Glance

Header file: Cpl.h
Windows CE versions: 1.0 and later

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 that contains the Control Panel application.

Remarks

The return value is not checked by the control panel explorer.

In Windows CE version 1.0, an error is recognized when the applet does not fill the NEWCPLINFO structure properly in response to the CPL_NEWINQUIRE message.

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 that contains the application is loaded.

See Also

FreeLibrary