Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Control panel definitions |
| 3 | * |
| 4 | * Copyright (C) 2001 Eric Pouech |
| 5 | * |
| 6 | * This library is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Lesser General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2.1 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This library is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * Lesser General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with this library; if not, write to the Free Software |
Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 19 | */ |
Eric Pouech | 92b2318 | 2001-02-23 01:12:26 +0000 | [diff] [blame] | 20 | |
| 21 | #ifndef _INC_CPL |
| 22 | #define _INC_CPL |
| 23 | |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 24 | #include <pshpack1.h> |
Eric Pouech | 92b2318 | 2001-02-23 01:12:26 +0000 | [diff] [blame] | 25 | |
| 26 | #ifdef __cplusplus |
| 27 | extern "C" { |
| 28 | #endif |
| 29 | |
| 30 | #define WM_CPL_LAUNCH (WM_USER+1000) |
| 31 | #define WM_CPL_LAUNCHED (WM_USER+1001) |
| 32 | |
| 33 | typedef LONG (APIENTRY *APPLET_PROC)(HWND hwndCpl, UINT msg, LPARAM lParam1, LPARAM lParam2); |
| 34 | |
| 35 | typedef struct tagCPLINFO { |
| 36 | int idIcon; |
| 37 | int idName; |
| 38 | int idInfo; |
Francois Gouget | 4cb9c16 | 2011-04-08 12:03:39 +0200 | [diff] [blame] | 39 | LONG_PTR lData; |
Eric Pouech | 92b2318 | 2001-02-23 01:12:26 +0000 | [diff] [blame] | 40 | } CPLINFO, *LPCPLINFO; |
| 41 | |
| 42 | typedef struct tagNEWCPLINFOA |
| 43 | { |
| 44 | DWORD dwSize; |
| 45 | DWORD dwFlags; |
| 46 | DWORD dwHelpContext; |
Francois Gouget | 4cb9c16 | 2011-04-08 12:03:39 +0200 | [diff] [blame] | 47 | LONG_PTR lData; |
Eric Pouech | 92b2318 | 2001-02-23 01:12:26 +0000 | [diff] [blame] | 48 | HICON hIcon; |
| 49 | CHAR szName[32]; |
| 50 | CHAR szInfo[64]; |
| 51 | CHAR szHelpFile[128]; |
| 52 | } NEWCPLINFOA, *LPNEWCPLINFOA; |
| 53 | |
| 54 | typedef struct tagNEWCPLINFOW |
| 55 | { |
| 56 | DWORD dwSize; |
| 57 | DWORD dwFlags; |
| 58 | DWORD dwHelpContext; |
Francois Gouget | 4cb9c16 | 2011-04-08 12:03:39 +0200 | [diff] [blame] | 59 | LONG_PTR lData; |
Eric Pouech | 92b2318 | 2001-02-23 01:12:26 +0000 | [diff] [blame] | 60 | HICON hIcon; |
| 61 | WCHAR szName[32]; |
| 62 | WCHAR szInfo[64]; |
| 63 | WCHAR szHelpFile[128]; |
| 64 | } NEWCPLINFOW, *LPNEWCPLINFOW; |
| 65 | |
| 66 | DECL_WINELIB_TYPE_AW(NEWCPLINFO) |
| 67 | DECL_WINELIB_TYPE_AW(LPNEWCPLINFO) |
| 68 | |
| 69 | #define CPL_DYNAMIC_RES 0 |
| 70 | #define CPL_INIT 1 |
| 71 | #define CPL_GETCOUNT 2 |
| 72 | #define CPL_INQUIRE 3 |
| 73 | #define CPL_SELECT 4 |
| 74 | #define CPL_DBLCLK 5 |
| 75 | #define CPL_STOP 6 |
| 76 | #define CPL_EXIT 7 |
| 77 | #define CPL_NEWINQUIRE 8 |
| 78 | #define CPL_STARTWPARMSA 9 |
| 79 | #define CPL_STARTWPARMSW 10 |
| 80 | #define CPL_STARTWPARMS WINELIB_NAME_AW(CPL_STARTWPARMS) |
| 81 | #define CPL_SETUP 200 |
| 82 | |
| 83 | #ifdef __cplusplus |
| 84 | } |
| 85 | #endif |
| 86 | |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 87 | #include <poppack.h> |
Eric Pouech | 92b2318 | 2001-02-23 01:12:26 +0000 | [diff] [blame] | 88 | |
| 89 | #endif /* _INC_CPL */ |