Martin Fuchs | dd46d6d | 2004-03-27 01:42:22 +0000 | [diff] [blame] | 1 | /* Control Panel management |
| 2 | * |
| 3 | * Copyright 2001 Eric Pouech |
Owen Rudge | 95c6d1d | 2008-07-22 17:31:03 +0100 | [diff] [blame] | 4 | * Copyright 2008 Owen Rudge |
Martin Fuchs | dd46d6d | 2004-03-27 01:42:22 +0000 | [diff] [blame] | 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 Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Martin Fuchs | dd46d6d | 2004-03-27 01:42:22 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #ifndef __WINE_SHELL_CPANEL_H |
| 22 | #define __WINE_SHELL_CPANEL_H |
| 23 | |
Juan Lang | c00fbaf | 2004-04-08 04:37:43 +0000 | [diff] [blame] | 24 | #include "cpl.h" |
| 25 | |
Martin Fuchs | dd46d6d | 2004-03-27 01:42:22 +0000 | [diff] [blame] | 26 | typedef struct CPlApplet { |
| 27 | struct CPlApplet* next; /* linked list */ |
| 28 | HWND hWnd; |
Owen Rudge | 1eca313 | 2009-07-20 17:03:58 -0300 | [diff] [blame] | 29 | LPWSTR cmd; /* path to applet */ |
Martin Fuchs | dd46d6d | 2004-03-27 01:42:22 +0000 | [diff] [blame] | 30 | 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 | |
| 37 | typedef struct CPanel { |
Owen Rudge | 238cdf7 | 2008-07-24 22:10:33 +0100 | [diff] [blame] | 38 | CPlApplet* first; |
| 39 | HWND hWnd; |
| 40 | HINSTANCE hInst; |
| 41 | unsigned total_subprogs; |
| 42 | HWND hWndListView; |
| 43 | HIMAGELIST hImageListLarge; |
| 44 | HIMAGELIST hImageListSmall; |
Owen Rudge | 5800539 | 2008-07-24 22:10:41 +0100 | [diff] [blame] | 45 | HWND hWndStatusBar; |
Martin Fuchs | dd46d6d | 2004-03-27 01:42:22 +0000 | [diff] [blame] | 46 | } CPanel; |
| 47 | |
Owen Rudge | 95c6d1d | 2008-07-22 17:31:03 +0100 | [diff] [blame] | 48 | /* structure to reference an individual control panel item */ |
| 49 | typedef struct CPlItem { |
| 50 | CPlApplet *applet; |
| 51 | unsigned id; |
| 52 | } CPlItem; |
Martin Fuchs | dd46d6d | 2004-03-27 01:42:22 +0000 | [diff] [blame] | 53 | |
| 54 | CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel); |
| 55 | CPlApplet* Control_UnloadApplet(CPlApplet* applet); |
| 56 | |
| 57 | #endif /* __WINE_SHELL_CPANEL_H */ |