1 | /*
|
---|
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
|
---|
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
23 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
24 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
25 | * a choice of LGPL license versions is made available with the language indicating
|
---|
26 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
27 | * of the LGPL is applied is otherwise unspecified.
|
---|
28 | */
|
---|
29 |
|
---|
30 | #ifndef _INC_CPL
|
---|
31 | #define _INC_CPL
|
---|
32 |
|
---|
33 | #include <pshpack1.h>
|
---|
34 |
|
---|
35 | #ifdef __cplusplus
|
---|
36 | extern "C" {
|
---|
37 | #endif
|
---|
38 |
|
---|
39 | #define WM_CPL_LAUNCH (WM_USER+1000)
|
---|
40 | #define WM_CPL_LAUNCHED (WM_USER+1001)
|
---|
41 |
|
---|
42 | typedef LONG (APIENTRY *APPLET_PROC)(HWND hwndCpl, UINT msg, LPARAM lParam1, LPARAM lParam2);
|
---|
43 |
|
---|
44 | typedef struct tagCPLINFO {
|
---|
45 | int idIcon;
|
---|
46 | int idName;
|
---|
47 | int idInfo;
|
---|
48 | LONG lData;
|
---|
49 | } CPLINFO, *LPCPLINFO;
|
---|
50 |
|
---|
51 | typedef struct tagNEWCPLINFOA
|
---|
52 | {
|
---|
53 | DWORD dwSize;
|
---|
54 | DWORD dwFlags;
|
---|
55 | DWORD dwHelpContext;
|
---|
56 | LONG lData;
|
---|
57 | HICON hIcon;
|
---|
58 | CHAR szName[32];
|
---|
59 | CHAR szInfo[64];
|
---|
60 | CHAR szHelpFile[128];
|
---|
61 | } NEWCPLINFOA, *LPNEWCPLINFOA;
|
---|
62 |
|
---|
63 | typedef struct tagNEWCPLINFOW
|
---|
64 | {
|
---|
65 | DWORD dwSize;
|
---|
66 | DWORD dwFlags;
|
---|
67 | DWORD dwHelpContext;
|
---|
68 | LONG lData;
|
---|
69 | HICON hIcon;
|
---|
70 | WCHAR szName[32];
|
---|
71 | WCHAR szInfo[64];
|
---|
72 | WCHAR szHelpFile[128];
|
---|
73 | } NEWCPLINFOW, *LPNEWCPLINFOW;
|
---|
74 |
|
---|
75 | DECL_WINELIB_TYPE_AW(NEWCPLINFO)
|
---|
76 | DECL_WINELIB_TYPE_AW(LPNEWCPLINFO)
|
---|
77 |
|
---|
78 | #define CPL_DYNAMIC_RES 0
|
---|
79 | #define CPL_INIT 1
|
---|
80 | #define CPL_GETCOUNT 2
|
---|
81 | #define CPL_INQUIRE 3
|
---|
82 | #define CPL_SELECT 4
|
---|
83 | #define CPL_DBLCLK 5
|
---|
84 | #define CPL_STOP 6
|
---|
85 | #define CPL_EXIT 7
|
---|
86 | #define CPL_NEWINQUIRE 8
|
---|
87 | #define CPL_STARTWPARMSA 9
|
---|
88 | #define CPL_STARTWPARMSW 10
|
---|
89 | #define CPL_STARTWPARMS WINELIB_NAME_AW(CPL_STARTWPARMS)
|
---|
90 | #define CPL_SETUP 200
|
---|
91 |
|
---|
92 | #ifdef __cplusplus
|
---|
93 | }
|
---|
94 | #endif
|
---|
95 |
|
---|
96 | #include <poppack.h>
|
---|
97 |
|
---|
98 | #endif /* _INC_CPL */
|
---|