2 * Copyright 2022 Jacek Caban for CodeWeavers
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
20 #include "wine/unixlib.h"
35 #define MACDRV_CALL(func, params) WINE_UNIX_CALL(unix_ ## func, params)
37 /* macdrv_dnd_get_data params */
38 struct dnd_get_data_params
46 /* macdrv_dnd_get_formats params */
47 struct dnd_get_formats_params
53 /* macdrv_dnd_have_format params */
54 struct dnd_have_format_params
60 /* macdrv_init params */
61 struct localized_string
70 struct localized_string
*strings
;
73 /* macdrv_notify_icon params */
74 struct notify_icon_params
77 struct _NOTIFYICONDATAW
*data
;
80 /* macdrv_quit_result params */
81 struct quit_result_params
86 /* driver client callbacks exposed with KernelCallbackTable interface */
87 enum macdrv_client_funcs
89 client_func_app_icon
= NtUserDriverCallbackFirst
,
90 client_func_app_quit_request
,
91 client_func_dnd_query_drag
,
92 client_func_dnd_query_drop
,
93 client_func_dnd_query_exited
,
97 /* macdrv_app_icon result */
107 struct app_icon_result
110 struct app_icon_entry entries
[64];
113 /* macdrv_app_icon params */
114 struct app_icon_params
116 UINT64 result
; /* FIXME: Use NtCallbackReturn instead */
119 /* macdrv_app_quit_request params */
120 struct app_quit_request_params
125 /* macdrv_dnd_query_drag params */
126 struct dnd_query_drag_params
135 /* macdrv_dnd_query_drop params */
136 struct dnd_query_drop_params
145 /* macdrv_dnd_query_exited params */
146 struct dnd_query_exited_params
151 static inline void *param_ptr(UINT64 param
)
153 return (void *)(UINT_PTR
)param
;
156 C_ASSERT(client_func_last
<= NtUserDriverCallbackLast
+ 1);