blob: 6a1fa574e785275d8528ec8cd59b8a6676ce06bd [file] [log] [blame]
Martin Fuchsdd46d6d2004-03-27 01:42:22 +00001/* Control Panel management
2 *
3 * Copyright 2001 Eric Pouech
Owen Rudge95c6d1d2008-07-22 17:31:03 +01004 * Copyright 2008 Owen Rudge
Martin Fuchsdd46d6d2004-03-27 01:42:22 +00005 *
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
Martin Fuchsdd46d6d2004-03-27 01:42:22 +000019 */
20
21#ifndef __WINE_SHELL_CPANEL_H
22#define __WINE_SHELL_CPANEL_H
23
Juan Langc00fbaf2004-04-08 04:37:43 +000024#include "cpl.h"
25
Martin Fuchsdd46d6d2004-03-27 01:42:22 +000026typedef struct CPlApplet {
27 struct CPlApplet* next; /* linked list */
28 HWND hWnd;
Owen Rudge1eca3132009-07-20 17:03:58 -030029 LPWSTR cmd; /* path to applet */
Martin Fuchsdd46d6d2004-03-27 01:42:22 +000030 unsigned count; /* number of subprograms */
31 HMODULE hModule; /* module of loaded applet */
32 APPLET_PROC proc; /* entry point address */
33 NEWCPLINFOW info[1]; /* array of count information.
34 * dwSize field is 0 if entry is invalid */
35} CPlApplet;
36
37typedef struct CPanel {
Owen Rudge238cdf72008-07-24 22:10:33 +010038 CPlApplet* first;
39 HWND hWnd;
40 HINSTANCE hInst;
41 unsigned total_subprogs;
42 HWND hWndListView;
43 HIMAGELIST hImageListLarge;
44 HIMAGELIST hImageListSmall;
Owen Rudge58005392008-07-24 22:10:41 +010045 HWND hWndStatusBar;
Martin Fuchsdd46d6d2004-03-27 01:42:22 +000046} CPanel;
47
Owen Rudge95c6d1d2008-07-22 17:31:03 +010048/* structure to reference an individual control panel item */
49typedef struct CPlItem {
50 CPlApplet *applet;
51 unsigned id;
52} CPlItem;
Martin Fuchsdd46d6d2004-03-27 01:42:22 +000053
54CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel);
55CPlApplet* Control_UnloadApplet(CPlApplet* applet);
56
57#endif /* __WINE_SHELL_CPANEL_H */