2004-03-27 02:42:22 +01:00
|
|
|
/* Control Panel management
|
|
|
|
*
|
|
|
|
* Copyright 2001 Eric Pouech
|
2008-07-22 18:31:03 +02:00
|
|
|
* Copyright 2008 Owen Rudge
|
2004-03-27 02:42:22 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-03-27 02:42:22 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_SHELL_CPANEL_H
|
|
|
|
#define __WINE_SHELL_CPANEL_H
|
|
|
|
|
2004-04-08 06:37:43 +02:00
|
|
|
#include "cpl.h"
|
|
|
|
|
2004-03-27 02:42:22 +01:00
|
|
|
typedef struct CPlApplet {
|
|
|
|
struct CPlApplet* next; /* linked list */
|
|
|
|
HWND hWnd;
|
2009-07-20 22:03:58 +02:00
|
|
|
LPWSTR cmd; /* path to applet */
|
2004-03-27 02:42:22 +01:00
|
|
|
unsigned count; /* number of subprograms */
|
|
|
|
HMODULE hModule; /* module of loaded applet */
|
|
|
|
APPLET_PROC proc; /* entry point address */
|
|
|
|
NEWCPLINFOW info[1]; /* array of count information.
|
|
|
|
* dwSize field is 0 if entry is invalid */
|
|
|
|
} CPlApplet;
|
|
|
|
|
|
|
|
typedef struct CPanel {
|
2008-07-24 23:10:33 +02:00
|
|
|
CPlApplet* first;
|
|
|
|
HWND hWnd;
|
|
|
|
HINSTANCE hInst;
|
|
|
|
unsigned total_subprogs;
|
|
|
|
HWND hWndListView;
|
|
|
|
HIMAGELIST hImageListLarge;
|
|
|
|
HIMAGELIST hImageListSmall;
|
2008-07-24 23:10:41 +02:00
|
|
|
HWND hWndStatusBar;
|
2004-03-27 02:42:22 +01:00
|
|
|
} CPanel;
|
|
|
|
|
2008-07-22 18:31:03 +02:00
|
|
|
/* structure to reference an individual control panel item */
|
|
|
|
typedef struct CPlItem {
|
|
|
|
CPlApplet *applet;
|
|
|
|
unsigned id;
|
|
|
|
} CPlItem;
|
2004-03-27 02:42:22 +01:00
|
|
|
|
2011-04-26 19:23:52 +02:00
|
|
|
CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel) DECLSPEC_HIDDEN;
|
|
|
|
CPlApplet* Control_UnloadApplet(CPlApplet* applet) DECLSPEC_HIDDEN;
|
2004-03-27 02:42:22 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_SHELL_CPANEL_H */
|