Share via


CPL_INIT

Send Feedback

The CPL_INIT message is sent to the CPlApplet function to prompt it to perform initialization for all Control Panel applications that it supports.

Syntax

#define CPL_INIT  1
  lp1 = (LPARAM) lParam1;
  lp2 = (LPARAM) lParam2;

Parameters

  • lp1
    Reserved. No relevant information is passed through this parameter.
  • lp2
    Reserved. No relevant information is passed through this parameter.

Return Values

If initialization succeeds, the CPlApplet function returns TRUE. Otherwise, it returns FALSE.

If CPlApplet returns FALSE, the calling application ends communication and releases the DLL that contains the CPlApplet function.

Remarks

This message is sent immediately after the DLL that contains the CPlApplet function is loaded. All memory allocation that is needed for a Control Panel application should occur when the CPL_INIT message is processed.

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: None
OS Versions: Windows CE 3.0 and later
Header: cpl.h

See Also

Control Panel Messages | CPlApplet | CPL_EXIT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.