The CPlApplet function is a library-defined callback function that serves as the entry point for a Control Panel application.
LONG APIENTRY CPlApplet(
HWND hwndCPl, |
// handle to Control Panel window |
UINT uMsg, |
// message |
LONG lParam1, |
// first message parameter |
LONG lParam2 |
// second message parameter |
); |
The return value depends on the message. For more information, see the descriptions of the individual Control Panel messages.
Use the hwndCPl parameter for dialog boxes or other windows that require a handle to a parent window.