dmusic: Avoid swallowing collection Load failures.
[wine.git] / dlls / shell32 / cpanel.h
bloba5470cceb2fcce127c3a422003188c422ceb08a9
1 /* Control Panel management
3 * Copyright 2001 Eric Pouech
4 * Copyright 2008 Owen Rudge
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 __WINE_SHELL_CPANEL_H
22 #define __WINE_SHELL_CPANEL_H
24 #include "wine/list.h"
25 #include "cpl.h"
27 struct applet_info
29 LONG_PTR data;
30 HICON icon;
31 WCHAR name[256];
32 WCHAR info[256];
33 WCHAR helpfile[128];
36 typedef struct CPlApplet {
37 struct list entry;
38 HWND hWnd;
39 LPWSTR cmd; /* path to applet */
40 unsigned count; /* number of subprograms */
41 HMODULE hModule; /* module of loaded applet */
42 APPLET_PROC proc; /* entry point address */
43 BOOL context_activated; /* whether context is activated */
44 HANDLE context; /* activation context handle */
45 ULONG_PTR cookie; /* activation context cookie */
46 struct applet_info info[1]; /* array of count information */
47 } CPlApplet;
49 typedef struct CPanel {
50 struct list applets;
51 HWND hWnd;
52 HINSTANCE hInst;
53 unsigned total_subprogs;
54 HWND hWndListView;
55 HIMAGELIST hImageListLarge;
56 HIMAGELIST hImageListSmall;
57 HWND hWndStatusBar;
58 } CPanel;
60 /* structure to reference an individual control panel item */
61 typedef struct CPlItem {
62 CPlApplet *applet;
63 unsigned id;
64 } CPlItem;
66 CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel);
67 void Control_UnloadApplet(CPlApplet* applet);
69 #endif /* __WINE_SHELL_CPANEL_H */