2004-03-27 01:42:22 +00:00
|
|
|
/* Control Panel management
|
|
|
|
*
|
|
|
|
* Copyright 2001 Eric Pouech
|
2008-07-22 16:31:03 +00:00
|
|
|
* Copyright 2008 Owen Rudge
|
2004-03-27 01:42:22 +00: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 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-03-27 01:42:22 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_SHELL_CPANEL_H
|
|
|
|
#define __WINE_SHELL_CPANEL_H
|
|
|
|
|
2012-06-05 17:55:27 +00:00
|
|
|
#include "wine/list.h"
|
2004-04-08 04:37:43 +00:00
|
|
|
#include "cpl.h"
|
|
|
|
|
2012-02-16 11:37:27 +00:00
|
|
|
struct applet_info
|
|
|
|
{
|
|
|
|
LONG_PTR data;
|
|
|
|
HICON icon;
|
|
|
|
WCHAR name[256];
|
|
|
|
WCHAR info[256];
|
|
|
|
WCHAR helpfile[128];
|
|
|
|
};
|
|
|
|
|
2004-03-27 01:42:22 +00:00
|
|
|
typedef struct CPlApplet {
|
2012-06-05 17:55:27 +00:00
|
|
|
struct list entry;
|
2004-03-27 01:42:22 +00:00
|
|
|
HWND hWnd;
|
2009-07-20 20:03:58 +00:00
|
|
|
LPWSTR cmd; /* path to applet */
|
2004-03-27 01:42:22 +00:00
|
|
|
unsigned count; /* number of subprograms */
|
|
|
|
HMODULE hModule; /* module of loaded applet */
|
|
|
|
APPLET_PROC proc; /* entry point address */
|
2012-02-16 11:37:27 +00:00
|
|
|
struct applet_info info[1]; /* array of count information */
|
2004-03-27 01:42:22 +00:00
|
|
|
} CPlApplet;
|
|
|
|
|
|
|
|
typedef struct CPanel {
|
2012-06-05 17:55:27 +00:00
|
|
|
struct list applets;
|
2008-07-24 21:10:33 +00:00
|
|
|
HWND hWnd;
|
|
|
|
HINSTANCE hInst;
|
|
|
|
unsigned total_subprogs;
|
|
|
|
HWND hWndListView;
|
|
|
|
HIMAGELIST hImageListLarge;
|
|
|
|
HIMAGELIST hImageListSmall;
|
2008-07-24 21:10:41 +00:00
|
|
|
HWND hWndStatusBar;
|
2004-03-27 01:42:22 +00:00
|
|
|
} CPanel;
|
|
|
|
|
2008-07-22 16:31:03 +00:00
|
|
|
/* structure to reference an individual control panel item */
|
|
|
|
typedef struct CPlItem {
|
|
|
|
CPlApplet *applet;
|
|
|
|
unsigned id;
|
|
|
|
} CPlItem;
|
2004-03-27 01:42:22 +00:00
|
|
|
|
2011-04-26 17:23:52 +00:00
|
|
|
CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel) DECLSPEC_HIDDEN;
|
2012-06-05 17:55:27 +00:00
|
|
|
void Control_UnloadApplet(CPlApplet* applet) DECLSPEC_HIDDEN;
|
2004-03-27 01:42:22 +00:00
|
|
|
|
|
|
|
#endif /* __WINE_SHELL_CPANEL_H */
|