CPL_NEWINQUIRE

The CPL_NEWINQUIRE message is sent to a Control Panel dynamic-link library (DLL) to request information about an application that the DLL supports.

Parameters

lParam1

Specifies the application number. This number must be in the range zero through one less than the value returned in response to the CPL_GETCOUNT message (CPL_GETCOUNT – 1).

lParam2

Specifies a far pointer to a NEWCPLINFO structure. The DLL should fill this structure with information about the application. The NEWCPLINFO structure has the following form:

#include <cpl.h>

typedef struct tagNEWCPLINFO {  /* ncpli */
    DWORD   dwSize;
    DWORD   dwFlags;
    DWORD   dwHelpContext;
    LONG    lData;
    HICON   hIcon;
    char    szName[32];
    char    szInfo[64];
    char    szHelpFile[128];
} NEWCPLINFO;

Return Value

The Control Panel DLL returns zero if it processes this message successfully.

Comments

This message is sent once for each application serviced by the DLL. It is sent immediately after the CPL_GETCOUNT message. A DLL can use the switch block for this message to do application-level initialization when it receives this message. Memory should be allocated in response to the CPL_INIT message.

See Also

CPL_GETCOUNT, CPL_INIT, CPL_INQUIRE