LONG CALLBACK* CPlApplet(hwndCPl, iMessage, lParam1, lParam2) | |||||
HWND hwndCPl; | /* handle of Control Panel window | */ | |||
UINT iMessage; | /* message | */ | |||
LPARAM lParam1; | /* first message parameter | */ | |||
LPARAM lParam2; | /* second message parameter | */ |
The CPlApplet function serves as the entry point for a Control Panel dynamic-link library (DLL). This function is supplied by the application.
hwndCPl
Identifies the main Control Panel window.
iMessage
Specifies the message being sent to the DLL.
lParam1
Specifies 32 bits of additional message-dependent information.
lParam2
Specifies 32 bits of additional message-dependent information.
The return value depends on the message. For more information, see the descriptions of the individual Control Panel messages in Microsoft Windows Programmer's Reference, Volume 3.
Use the hwndCPl parameter for dialog boxes or other windows that require a handle of a parent window.