ReactOS  0.4.14-dev-593-g1793dcc
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 
30 {
32 #ifdef __REACTOS__
33  int idIcon;
34 #endif
36  WCHAR name[256];
37  WCHAR info[256];
39 };
40 
41 typedef struct CPlApplet {
42 #ifndef __REACTOS__
43  struct list entry;
44 #else
45  HANDLE hActCtx;
46 #endif
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;
60  unsigned total_subprogs;
65 } CPanel;
66 
67 /* structure to reference an individual control panel item */
68 typedef struct CPlItem {
70  unsigned id;
71 } CPlItem;
72 #else
73 typedef int CPanel;
74 #endif
75 
78 
79 #ifdef __cplusplus
80 } /* extern "C" */
81 #endif
82 
83 #endif /* __WINE_SHELL_CPANEL_H */
unsigned id
Definition: cpanel.h:70
HWND hWndListView
Definition: cpanel.h:61
struct CPanel CPanel
static HICON
Definition: imagelist.c:84
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
HWND hWnd
Definition: cpanel.h:58
Definition: ftp_var.h:139
HIMAGELIST hImageListSmall
Definition: cpanel.h:63
LONG(APIENTRY * APPLET_PROC)(HWND, UINT, LPARAM, LPARAM)
Definition: cpl.h:23
WCHAR helpfile[128]
Definition: cpanel.h:38
struct list entry
Definition: cpanel.h:43
CPlApplet * applet
Definition: cpanel.h:69
HWND hWnd
Definition: settings.c:17
HINSTANCE hInst
Definition: cpanel.h:59
CPlApplet * Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel *panel) DECLSPEC_HIDDEN
Definition: control.c:56
APPLET_PROC proc
Definition: cpanel.h:51
HWND hWndStatusBar
Definition: cpanel.h:64
struct CPlItem CPlItem
__wchar_t WCHAR
Definition: xmlstorage.h:180
LPWSTR cmd
Definition: cpanel.h:48
unsigned count
Definition: cpanel.h:49
HICON icon
Definition: cpanel.h:35
Definition: _list.h:228
Definition: cpanel.h:68
struct list applets
Definition: cpanel.h:57
Definition: cpanel.h:56
HWND hWnd
Definition: cpanel.h:47
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
unsigned total_subprogs
Definition: cpanel.h:60
void Control_UnloadApplet(CPlApplet *applet) DECLSPEC_HIDDEN
Definition: control.c:40
HIMAGELIST hImageListLarge
Definition: cpanel.h:62
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
LONG_PTR data
Definition: cpanel.h:31
HMODULE hModule
Definition: cpanel.h:50
Definition: name.c:38
WCHAR * LPWSTR
Definition: xmlstorage.h:184
struct CPlApplet CPlApplet