blob: adabeba84843e3c3528b7a784106831aa5556525 [file] [log] [blame]
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00001/*
2 * Control panel definitions
3 *
4 * Copyright (C) 2001 Eric Pouech
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
Jonathan Ernst360a3f92006-05-18 14:49:52 +020018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Alexandre Julliard0799c1a2002-03-09 23:29:33 +000019 */
Eric Pouech92b23182001-02-23 01:12:26 +000020
21#ifndef _INC_CPL
22#define _INC_CPL
23
Dimitrie O. Paun53f9c212003-08-28 21:43:34 +000024#include <pshpack1.h>
Eric Pouech92b23182001-02-23 01:12:26 +000025
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#define WM_CPL_LAUNCH (WM_USER+1000)
31#define WM_CPL_LAUNCHED (WM_USER+1001)
32
33typedef LONG (APIENTRY *APPLET_PROC)(HWND hwndCpl, UINT msg, LPARAM lParam1, LPARAM lParam2);
34
35typedef struct tagCPLINFO {
36 int idIcon;
37 int idName;
38 int idInfo;
Francois Gouget4cb9c162011-04-08 12:03:39 +020039 LONG_PTR lData;
Eric Pouech92b23182001-02-23 01:12:26 +000040} CPLINFO, *LPCPLINFO;
41
42typedef struct tagNEWCPLINFOA
43{
44 DWORD dwSize;
45 DWORD dwFlags;
46 DWORD dwHelpContext;
Francois Gouget4cb9c162011-04-08 12:03:39 +020047 LONG_PTR lData;
Eric Pouech92b23182001-02-23 01:12:26 +000048 HICON hIcon;
49 CHAR szName[32];
50 CHAR szInfo[64];
51 CHAR szHelpFile[128];
52} NEWCPLINFOA, *LPNEWCPLINFOA;
53
54typedef struct tagNEWCPLINFOW
55{
56 DWORD dwSize;
57 DWORD dwFlags;
58 DWORD dwHelpContext;
Francois Gouget4cb9c162011-04-08 12:03:39 +020059 LONG_PTR lData;
Eric Pouech92b23182001-02-23 01:12:26 +000060 HICON hIcon;
61 WCHAR szName[32];
62 WCHAR szInfo[64];
63 WCHAR szHelpFile[128];
64} NEWCPLINFOW, *LPNEWCPLINFOW;
65
66DECL_WINELIB_TYPE_AW(NEWCPLINFO)
67DECL_WINELIB_TYPE_AW(LPNEWCPLINFO)
68
69#define CPL_DYNAMIC_RES 0
70#define CPL_INIT 1
71#define CPL_GETCOUNT 2
72#define CPL_INQUIRE 3
73#define CPL_SELECT 4
74#define CPL_DBLCLK 5
75#define CPL_STOP 6
76#define CPL_EXIT 7
77#define CPL_NEWINQUIRE 8
78#define CPL_STARTWPARMSA 9
79#define CPL_STARTWPARMSW 10
80#define CPL_STARTWPARMS WINELIB_NAME_AW(CPL_STARTWPARMS)
81#define CPL_SETUP 200
82
83#ifdef __cplusplus
84}
85#endif
86
Dimitrie O. Paun53f9c212003-08-28 21:43:34 +000087#include <poppack.h>
Eric Pouech92b23182001-02-23 01:12:26 +000088
89#endif /* _INC_CPL */