NEWCPLINFOA structure (cpl.h)

Contains resource information and an application-defined value for a dialog box supported by a Control Panel application.

Syntax

typedef struct tagNEWCPLINFOA {
  DWORD    dwSize;
  DWORD    dwFlags;
  DWORD    dwHelpContext;
  LONG_PTR lData;
  HICON    hIcon;
  CHAR     szName[32];
  CHAR     szInfo[64];
  CHAR     szHelpFile[128];
} NEWCPLINFOA, *LPNEWCPLINFOA;

Members

dwSize

Type: DWORD

The length of the structure, in bytes.

dwFlags

Type: DWORD

This member is ignored.

dwHelpContext

Type: DWORD

This member is ignored.

lData

Type: LONG_PTR

A pointer to data defined by the application. When the Control Panel sends the CPL_DBLCLK and CPL_STOP messages, it passes this value back to your application.

hIcon

Type: HICON

The identifier of the icon that represents the dialog box. This icon is intended to be displayed by the application that controls the Control Panel application.

szName[32]

Type: TCHAR[32]

A null-terminated string that contains the dialog box name. The name is intended to be displayed below the icon.

szInfo[64]

Type: TCHAR[64]

A null-terminated string containing the dialog box description. The description is intended to be displayed when the icon for the dialog box is selected.

szHelpFile[128]

Type: TCHAR[128]

This member is ignored.

Remarks

The CPlApplet function of the Control Panel application returns this information to the Control Panel in response to a CPL_NEWINQUIRE message.

Note

The cpl.h header defines NEWCPLINFO as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header cpl.h

See also

CPLINFO