ddraw/tests: Use FAILED instead of !SUCCEEDED.
[wine] / dlls / shell32 / cpanel.h
1 /* Control Panel management
2  *
3  * Copyright 2001 Eric Pouech
4  * Copyright 2008 Owen Rudge
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 #ifndef __WINE_SHELL_CPANEL_H
22 #define __WINE_SHELL_CPANEL_H
23
24 #include "cpl.h"
25
26 typedef struct CPlApplet {
27     struct CPlApplet*   next;           /* linked list */
28     HWND                hWnd;
29     unsigned            count;          /* number of subprograms */
30     HMODULE             hModule;        /* module of loaded applet */
31     APPLET_PROC         proc;           /* entry point address */
32     NEWCPLINFOW         info[1];        /* array of count information.
33                                          * dwSize field is 0 if entry is invalid */
34 } CPlApplet;
35
36 typedef struct CPanel {
37     CPlApplet*  first;
38     HWND        hWnd;
39     HINSTANCE   hInst;
40     unsigned    total_subprogs;
41     HWND        hWndListView;
42     HIMAGELIST  hImageListLarge;
43     HIMAGELIST  hImageListSmall;
44     HWND        hWndStatusBar;
45 } CPanel;
46
47 /* structure to reference an individual control panel item */
48 typedef struct CPlItem {
49     CPlApplet *applet;
50     unsigned id;
51 } CPlItem;
52
53 CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel);
54 CPlApplet* Control_UnloadApplet(CPlApplet* applet);
55
56 #endif /* __WINE_SHELL_CPANEL_H */