26fca4a6abfd73ebf46df391540612a7ffc9df59
[reactos.git] / reactos / dll / win32 / shell32 / wine / cpanel.h
1 /* Control Panel management
2 *
3 * Copyright 2001 Eric Pouech
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20 #ifndef __WINE_SHELL_CPANEL_H
21 #define __WINE_SHELL_CPANEL_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #include <cpl.h>
28
29 struct applet_info
30 {
31 LONG_PTR data;
32 #ifdef __REACTOS__
33 int idIcon;
34 #endif
35 HICON icon;
36 WCHAR name[256];
37 WCHAR info[256];
38 WCHAR helpfile[128];
39 };
40
41 typedef struct CPlApplet {
42 #ifndef __REACTOS__
43 struct list entry;
44 #endif
45 HWND hWnd;
46 LPWSTR cmd; /* path to applet */
47 unsigned count; /* number of subprograms */
48 HMODULE hModule; /* module of loaded applet */
49 APPLET_PROC proc; /* entry point address */
50 struct applet_info info[1]; /* array of count information */
51 } CPlApplet;
52
53 #ifndef __REACTOS__
54 typedef struct CPanel {
55 struct list applets;
56 HWND hWnd;
57 HINSTANCE hInst;
58 unsigned total_subprogs;
59 HWND hWndListView;
60 HIMAGELIST hImageListLarge;
61 HIMAGELIST hImageListSmall;
62 HWND hWndStatusBar;
63 } CPanel;
64
65 /* structure to reference an individual control panel item */
66 typedef struct CPlItem {
67 CPlApplet *applet;
68 unsigned id;
69 } CPlItem;
70 #else
71 typedef int CPanel;
72 #endif
73
74 CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel) DECLSPEC_HIDDEN;
75 void Control_UnloadApplet(CPlApplet* applet) DECLSPEC_HIDDEN;
76
77 #ifdef __cplusplus
78 } /* extern "C" */
79 #endif
80
81 #endif /* __WINE_SHELL_CPANEL_H */