Partager via


CPL_INIT (Compact 2013)

3/28/2014

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

Syntax

CPL_INIT wParam1 = 0;
  lParam2 = 0;

Parameters

  • wParam
    Not used.
  • lParam
    Not used.

Return Value

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.

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.

Requirements

Header

cpl.h

See Also

Reference

Shell Messages

Other Resources

FreeLibrary