ReactOS
0.4.16-dev-336-gb667d82
cpanel.h
Go to the documentation of this file.
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
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
#include <
cpl.h
>
28
29
struct
applet_info
30
{
31
LONG_PTR
data
;
32
#ifdef __REACTOS__
33
int
idIcon;
34
#endif
35
HICON
icon
;
36
WCHAR
name
[256];
37
WCHAR
info
[256];
38
WCHAR
helpfile
[128];
39
};
40
41
typedef
struct
CPlApplet
{
42
#ifndef __REACTOS__
43
struct
list
entry
;
44
#else
45
HANDLE
hActCtx;
46
#endif
47
HWND
hWnd
;
48
LPWSTR
cmd
;
/* path to applet */
49
unsigned
count
;
/* number of subprograms */
50
HMODULE
hModule
;
/* module of loaded applet */
51
APPLET_PROC
proc
;
/* entry point address */
52
struct
applet_info
info
[1];
/* array of count information */
53
}
CPlApplet
;
54
55
#ifndef __REACTOS__
56
typedef
struct
CPanel
{
57
struct
list
applets
;
58
HWND
hWnd
;
59
HINSTANCE
hInst
;
60
unsigned
total_subprogs
;
61
HWND
hWndListView
;
62
HIMAGELIST
hImageListLarge
;
63
HIMAGELIST
hImageListSmall
;
64
HWND
hWndStatusBar
;
65
}
CPanel
;
66
67
/* structure to reference an individual control panel item */
68
typedef
struct
CPlItem
{
69
CPlApplet
*
applet
;
70
unsigned
id
;
71
}
CPlItem
;
72
#else
73
typedef
int
CPanel
;
74
#endif
75
76
CPlApplet
*
Control_LoadApplet
(
HWND
hWnd
,
LPCWSTR
cmd
,
CPanel
* panel)
DECLSPEC_HIDDEN
;
77
void
Control_UnloadApplet
(
CPlApplet
* applet)
DECLSPEC_HIDDEN
;
78
79
#ifdef __cplusplus
80
}
/* extern "C" */
81
#endif
82
83
#endif
/* __WINE_SHELL_CPANEL_H */
hWnd
HWND hWnd
Definition:
settings.c:17
list
Definition:
list.h:37
Control_UnloadApplet
void Control_UnloadApplet(CPlApplet *applet) DECLSPEC_HIDDEN
Definition:
control.c:45
Control_LoadApplet
CPlApplet * Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel *panel) DECLSPEC_HIDDEN
Definition:
control.c:61
cpl.h
APPLET_PROC
LONG(APIENTRY * APPLET_PROC)(HWND, UINT, LPARAM, LPARAM)
Definition:
cpl.h:23
DECLSPEC_HIDDEN
#define DECLSPEC_HIDDEN
Definition:
precomp.h:8
void
Definition:
nsiface.idl:2307
HICON
static HICON
Definition:
imagelist.c:80
LONG_PTR
__int3264 LONG_PTR
Definition:
mstsclib_h.h:276
CPanel
Definition:
cpanel.h:56
CPanel::hImageListLarge
HIMAGELIST hImageListLarge
Definition:
cpanel.h:62
CPanel::applets
struct list applets
Definition:
cpanel.h:57
CPanel::hImageListSmall
HIMAGELIST hImageListSmall
Definition:
cpanel.h:63
CPanel::total_subprogs
unsigned total_subprogs
Definition:
cpanel.h:60
CPanel::hInst
HINSTANCE hInst
Definition:
cpanel.h:59
CPanel::hWndStatusBar
HWND hWndStatusBar
Definition:
cpanel.h:64
CPanel::hWndListView
HWND hWndListView
Definition:
cpanel.h:61
CPanel::hWnd
HWND hWnd
Definition:
cpanel.h:58
CPlApplet
Definition:
cpanel.h:41
CPlApplet::hModule
HMODULE hModule
Definition:
cpanel.h:50
CPlApplet::cmd
LPWSTR cmd
Definition:
cpanel.h:48
CPlApplet::proc
APPLET_PROC proc
Definition:
cpanel.h:51
CPlApplet::hWnd
HWND hWnd
Definition:
cpanel.h:47
CPlApplet::entry
struct list entry
Definition:
cpanel.h:43
CPlApplet::count
unsigned count
Definition:
cpanel.h:49
CPlItem
Definition:
cpanel.h:68
CPlItem::id
unsigned id
Definition:
cpanel.h:70
CPlItem::applet
CPlApplet * applet
Definition:
cpanel.h:69
_IMAGELIST
Definition:
imagelist.c:84
applet_info
Definition:
cpanel.h:30
applet_info::icon
HICON icon
Definition:
cpanel.h:35
applet_info::data
LONG_PTR data
Definition:
cpanel.h:31
applet_info::helpfile
WCHAR helpfile[128]
Definition:
cpanel.h:38
cmd
Definition:
ftp_var.h:139
info
Definition:
notification.c:61
name
Definition:
name.c:39
WCHAR
__wchar_t WCHAR
Definition:
xmlstorage.h:180
LPWSTR
WCHAR * LPWSTR
Definition:
xmlstorage.h:184
LPCWSTR
const WCHAR * LPCWSTR
Definition:
xmlstorage.h:185
dll
win32
shell32
wine
cpanel.h
Generated on Tue Dec 10 2024 06:04:53 for ReactOS by
1.9.6