widl: Always check the runtimeclass interfaces presence.
[wine/zf.git] / include / cpl.h
blobadabeba84843e3c3528b7a784106831aa5556525
1 /*
2 * Control panel definitions
4 * Copyright (C) 2001 Eric Pouech
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.
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.
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
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef _INC_CPL
22 #define _INC_CPL
24 #include <pshpack1.h>
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
30 #define WM_CPL_LAUNCH (WM_USER+1000)
31 #define WM_CPL_LAUNCHED (WM_USER+1001)
33 typedef LONG (APIENTRY *APPLET_PROC)(HWND hwndCpl, UINT msg, LPARAM lParam1, LPARAM lParam2);
35 typedef struct tagCPLINFO {
36 int idIcon;
37 int idName;
38 int idInfo;
39 LONG_PTR lData;
40 } CPLINFO, *LPCPLINFO;
42 typedef struct tagNEWCPLINFOA
44 DWORD dwSize;
45 DWORD dwFlags;
46 DWORD dwHelpContext;
47 LONG_PTR lData;
48 HICON hIcon;
49 CHAR szName[32];
50 CHAR szInfo[64];
51 CHAR szHelpFile[128];
52 } NEWCPLINFOA, *LPNEWCPLINFOA;
54 typedef struct tagNEWCPLINFOW
56 DWORD dwSize;
57 DWORD dwFlags;
58 DWORD dwHelpContext;
59 LONG_PTR lData;
60 HICON hIcon;
61 WCHAR szName[32];
62 WCHAR szInfo[64];
63 WCHAR szHelpFile[128];
64 } NEWCPLINFOW, *LPNEWCPLINFOW;
66 DECL_WINELIB_TYPE_AW(NEWCPLINFO)
67 DECL_WINELIB_TYPE_AW(LPNEWCPLINFO)
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
83 #ifdef __cplusplus
85 #endif
87 #include <poppack.h>
89 #endif /* _INC_CPL */