2 * Copyright (C) 2007 Francois Gouget
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 #ifndef __WINE_WFEXT_H
19 #define __WINE_WFEXT_H
25 #define MENU_TEXT_LEN 40
27 #define FMMENU_FIRST 1
28 #define FMMENU_LAST 99
30 #define FMEVENT_LOAD 100
31 #define FMEVENT_UNLOAD 101
32 #define FMEVENT_INITMENU 102
33 #define FMEVENT_USER_REFRESH 103
34 #define FMEVENT_SELCHANGE 104
35 #define FMEVENT_TOOLBARLOAD 105
36 #define FMEVENT_HELPSTRING 106
37 #define FMEVENT_HELPMENUITEM 107
40 #define FMFOCUS_TREE 2
41 #define FMFOCUS_DRIVES 3
42 #define FMFOCUS_SEARCH 4
44 #define FM_GETFOCUS (WM_USER + 0x0200)
45 #define FM_GETDRIVEINFOA (WM_USER + 0x0201)
46 #define FM_GETSELCOUNT (WM_USER + 0x0202)
47 #define FM_GETSELCOUNTLFN (WM_USER + 0x0203)
48 #define FM_GETFILESELA (WM_USER + 0x0204)
49 #define FM_GETFILESELLFNA (WM_USER + 0x0205)
50 #define FM_REFRESH_WINDOWS (WM_USER + 0x0206)
51 #define FM_RELOAD_EXTENSIONS (WM_USER + 0x0207)
52 #define FM_GETDRIVEINFOW (WM_USER + 0x0211)
53 #define FM_GETFILESELW (WM_USER + 0x0214)
54 #define FM_GETFILESELLFNW (WM_USER + 0x0215)
56 #define FM_GETDRIVEINFO WINELIB_NAME_AW(FM_GETDRIVEINFO)
57 #define FM_GETFILESEL WINELIB_NAME_AW(FM_GETFILESEL)
58 #define FM_GETFILESELLFN WINELIB_NAME_AW(FM_GETFILESELLFN)
60 typedef struct _FMS_GETFILESELA
66 } FMS_GETFILESELA
, *LPFMS_GETFILESELA
;
68 typedef struct _FMS_GETFILESELW
74 } FMS_GETFILESELW
, *LPFMS_GETFILESELW
;
76 #define FMS_GETFILESEL WINELIB_NAME_AW(FMS_GETFILESEL)
77 #define LPFMS_GETFILESEL WINELIB_NAME_AW(LPFMS_GETFILESEL)
79 typedef struct _FMS_GETDRIVEINFOA
86 } FMS_GETDRIVEINFOA
, *LPFMS_GETDRIVEINFOA
;
88 typedef struct _FMS_GETDRIVEINFOW
95 } FMS_GETDRIVEINFOW
, *LPFMS_GETDRIVEINFOW
;
97 #define FMS_GETDRIVEINFO WINELIB_NAME_AW(FMS_GETDRIVEINFO)
98 #define LPFMS_GETDRIVEINFO WINELIB_NAME_AW(LPFMS_GETDRIVEINFO)
100 typedef struct _FMS_LOADA
103 CHAR szMenuName
[MENU_TEXT_LEN
];
106 } FMS_LOADA
, *LPFMS_LOADA
;
108 typedef struct _FMS_LOADW
111 WCHAR szMenuName
[MENU_TEXT_LEN
];
114 } FMS_LOADW
, *LPFMS_LOADW
;
116 #define FMS_LOAD WINELIB_NAME_AW(FMS_LOAD)
117 #define LPFMS_LOAD WINELIB_NAME_AW(LPFMS_LOAD)
119 typedef struct tagEXT_BUTTON
124 } EXT_BUTTON
, *LPEXT_BUTTON
;
126 typedef struct tagFMS_TOOLBARLOAD
129 LPEXT_BUTTON lpButtons
;
134 } FMS_TOOLBARLOAD
, *LPFMS_TOOLBARLOAD
;
136 typedef struct tagFMS_HELPSTRINGA
141 } FMS_HELPSTRINGA
, *LPFMS_HELPSTRINGA
;
143 typedef struct tagFMS_HELPSTRINGW
148 } FMS_HELPSTRINGW
, *LPFMS_HELPSTRINGW
;
150 #define FMS_HELPSTRING WINELIB_NAME_AW(FMS_HELPSTRING)
151 #define LPFMS_HELPSTRING WINELIB_NAME_AW(LPFMS_HELPSTRING)
153 typedef DWORD (WINAPI
*FM_EXT_PROC
)(HWND
,WORD
,LONG
);
154 typedef DWORD (WINAPI
*FM_UNDELETE_PROCA
)(HWND
,LPSTR
);
155 typedef DWORD (WINAPI
*FM_UNDELETE_PROCW
)(HWND
,LPWSTR
);
156 DECL_WINELIB_TYPE_AW(FM_UNDELETE_PROC
);
158 LONG WINAPI
FMExtensionProc(HWND
,WORD
,LONG
);
159 LONG WINAPI
FMExtensionProcW(HWND
,WORD
,LONG
);