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
|
|
|
|
|
2012-06-05 19:55:27 +02:00
|
|
|
#include "wine/list.h"
|
2004-04-08 06:37:43 +02:00
|
|
|
#include "cpl.h"
|
|
|
|
|
2012-02-16 12:37:27 +01:00
|
|
|
struct applet_info
|
|
|
|
{
|
|
|
|
LONG_PTR data;
|
|
|
|
HICON icon;
|
|
|
|
WCHAR name[256];
|
|
|
|
WCHAR info[256];
|
|
|
|
WCHAR helpfile[128];
|
|
|
|
};
|
|
|
|
|
2004-03-27 02:42:22 +01:00
|
|
|
typedef struct CPlApplet {
|
2012-06-05 19:55:27 +02:00
|
|
|
struct list entry;
|
2004-03-27 02:42:22 +01:00
|
|
|
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 */
|
2012-02-16 12:37:27 +01:00
|
|
|
struct applet_info info[1]; /* array of count information */
|
2004-03-27 02:42:22 +01:00
|
|
|
} CPlApplet;
|
|
|
|
|
|
|
|
typedef struct CPanel {
|
2012-06-05 19:55:27 +02:00
|
|
|
struct list applets;
|
2008-07-24 23:10:33 +02:00
|
|
|
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;
|
2012-06-05 19:55:27 +02:00
|
|
|
void Control_UnloadApplet(CPlApplet* applet) DECLSPEC_HIDDEN;
|
2004-03-27 02:42:22 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_SHELL_CPANEL_H */
|