shell32: A lot of lnk files have extra data blocks at the end, although they don...
[wine] / dlls / shell32 / 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 #include "cpl.h"
24
25 typedef struct CPlApplet {
26     struct CPlApplet*   next;           /* linked list */
27     HWND                hWnd;
28     unsigned            count;          /* number of subprograms */
29     HMODULE             hModule;        /* module of loaded applet */
30     APPLET_PROC         proc;           /* entry point address */
31     NEWCPLINFOW         info[1];        /* array of count information.
32                                          * dwSize field is 0 if entry is invalid */
33 } CPlApplet;
34
35 typedef struct CPanel {
36     CPlApplet*          first;          /* linked list */
37     HWND                hWnd;
38     unsigned            status;
39     CPlApplet*          clkApplet;
40     unsigned            clkSP;
41 } CPanel;
42
43
44 CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel);
45 CPlApplet* Control_UnloadApplet(CPlApplet* applet);
46
47 #endif /* __WINE_SHELL_CPANEL_H */