wine.inf: We should not override existing associations.
[wine/hacks.git] / dlls / oledlg / oledlg_main.c
blobc7daf5f83d4b40987d45b8bf32628f3a7ff47157
1 /*
2 * OLEDLG library
4 * Copyright 1998 Patrik Stridvall
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.
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.
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
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #define COM_NO_WINDOWS_H
22 #include <stdarg.h>
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winerror.h"
27 #include "wingdi.h"
28 #include "winuser.h"
29 #include "oledlg.h"
30 #include "wine/debug.h"
31 #include "ole2.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(ole);
35 HINSTANCE OLEDLG_hInstance = 0;
37 /***********************************************************************
38 * DllMain
40 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
42 TRACE("%p 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
44 switch(fdwReason) {
45 case DLL_PROCESS_ATTACH:
46 DisableThreadLibraryCalls(hinstDLL);
47 OLEDLG_hInstance = hinstDLL;
48 break;
50 case DLL_PROCESS_DETACH:
51 OLEDLG_hInstance = 0;
52 break;
54 return TRUE;
58 /***********************************************************************
59 * OleUIAddVerbMenuA (OLEDLG.1)
61 BOOL WINAPI OleUIAddVerbMenuA(
62 LPOLEOBJECT lpOleObj, LPCSTR lpszShortType,
63 HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
64 BOOL bAddConvert, UINT idConvert, HMENU *lphMenu)
66 FIXME("(%p, %s, %p, %d, %d, %d, %d, %d, %p): stub\n",
67 lpOleObj, debugstr_a(lpszShortType),
68 hMenu, uPos, uIDVerbMin, uIDVerbMax,
69 bAddConvert, idConvert, lphMenu
71 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
72 return FALSE;
75 /***********************************************************************
76 * OleUIAddVerbMenuW (OLEDLG.14)
78 BOOL WINAPI OleUIAddVerbMenuW(
79 LPOLEOBJECT lpOleObj, LPCWSTR lpszShortType,
80 HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
81 BOOL bAddConvert, UINT idConvert, HMENU *lphMenu)
83 FIXME("(%p, %s, %p, %d, %d, %d, %d, %d, %p): stub\n",
84 lpOleObj, debugstr_w(lpszShortType),
85 hMenu, uPos, uIDVerbMin, uIDVerbMax,
86 bAddConvert, idConvert, lphMenu
88 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
89 return FALSE;
92 /***********************************************************************
93 * OleUICanConvertOrActivateAs (OLEDLG.2)
95 BOOL WINAPI OleUICanConvertOrActivateAs(
96 REFCLSID rClsid, BOOL fIsLinkedObject, WORD wFormat)
98 FIXME("(%p, %d, %hd): stub\n",
99 rClsid, fIsLinkedObject, wFormat
101 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
102 return FALSE;
105 /***********************************************************************
106 * OleUIInsertObjectW (OLEDLG.20)
108 UINT WINAPI OleUIInsertObjectW(LPOLEUIINSERTOBJECTW lpOleUIInsertObject)
110 FIXME("(%p): stub\n", lpOleUIInsertObject);
111 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
112 return OLEUI_FALSE;
115 /***********************************************************************
116 * OleUIPasteSpecialA (OLEDLG.4)
118 UINT WINAPI OleUIPasteSpecialA(LPOLEUIPASTESPECIALA lpOleUIPasteSpecial)
120 FIXME("(%p): stub\n", lpOleUIPasteSpecial);
121 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
122 return OLEUI_FALSE;
125 /***********************************************************************
126 * OleUIPasteSpecialW (OLEDLG.22)
128 UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW lpOleUIPasteSpecial)
130 FIXME("(%p): stub\n", lpOleUIPasteSpecial);
131 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
132 return OLEUI_FALSE;
135 /***********************************************************************
136 * OleUIEditLinksA (OLEDLG.5)
138 UINT WINAPI OleUIEditLinksA(LPOLEUIEDITLINKSA lpOleUIEditLinks)
140 FIXME("(%p): stub\n", lpOleUIEditLinks);
141 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
142 return OLEUI_FALSE;
145 /***********************************************************************
146 * OleUIEditLinksW (OLEDLG.19)
148 UINT WINAPI OleUIEditLinksW(LPOLEUIEDITLINKSW lpOleUIEditLinks)
150 FIXME("(%p): stub\n", lpOleUIEditLinks);
151 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
152 return OLEUI_FALSE;
155 /***********************************************************************
156 * OleUIChangeIconA (OLEDLG.6)
158 UINT WINAPI OleUIChangeIconA(
159 LPOLEUICHANGEICONA lpOleUIChangeIcon)
161 FIXME("(%p): stub\n", lpOleUIChangeIcon);
162 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
163 return OLEUI_FALSE;
166 /***********************************************************************
167 * OleUIChangeIconW (OLEDLG.16)
169 UINT WINAPI OleUIChangeIconW(
170 LPOLEUICHANGEICONW lpOleUIChangeIcon)
172 FIXME("(%p): stub\n", lpOleUIChangeIcon);
173 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
174 return OLEUI_FALSE;
177 /***********************************************************************
178 * OleUIConvertA (OLEDLG.7)
180 UINT WINAPI OleUIConvertA(LPOLEUICONVERTA lpOleUIConvert)
182 FIXME("(%p): stub\n", lpOleUIConvert);
183 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
184 return OLEUI_FALSE;
187 /***********************************************************************
188 * OleUIConvertW (OLEDLG.18)
190 UINT WINAPI OleUIConvertW(LPOLEUICONVERTW lpOleUIConvert)
192 FIXME("(%p): stub\n", lpOleUIConvert);
193 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
194 return OLEUI_FALSE;
197 /***********************************************************************
198 * OleUIBusyA (OLEDLG.8)
200 UINT WINAPI OleUIBusyA(LPOLEUIBUSYA lpOleUIBusy)
202 FIXME("(%p): stub\n", lpOleUIBusy);
203 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
204 return OLEUI_FALSE;
207 /***********************************************************************
208 * OleUIBusyW (OLEDLG.15)
210 UINT WINAPI OleUIBusyW(LPOLEUIBUSYW lpOleUIBusy)
212 FIXME("(%p): stub\n", lpOleUIBusy);
213 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
214 return OLEUI_FALSE;
217 /***********************************************************************
218 * OleUIUpdateLinksA (OLEDLG.9)
220 BOOL WINAPI OleUIUpdateLinksA(
221 LPOLEUILINKCONTAINERA lpOleUILinkCntr,
222 HWND hwndParent, LPSTR lpszTitle, INT cLinks)
224 FIXME("(%p, %p, %s, %d): stub\n",
225 lpOleUILinkCntr, hwndParent, debugstr_a(lpszTitle), cLinks
227 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
228 return FALSE;
231 /***********************************************************************
232 * OleUIUpdateLinksW (OLEDLG.23)
234 BOOL WINAPI OleUIUpdateLinksW(
235 LPOLEUILINKCONTAINERW lpOleUILinkCntr,
236 HWND hwndParent, LPWSTR lpszTitle, INT cLinks)
238 FIXME("(%p, %p, %s, %d): stub\n",
239 lpOleUILinkCntr, hwndParent, debugstr_w(lpszTitle), cLinks
241 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
242 return FALSE;
245 /***********************************************************************
246 * OleUIPromptUserA (OLEDLG.10)
248 INT WINAPIV OleUIPromptUserA(
249 INT nTemplate, HWND hwndParent, ...)
251 FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
252 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
253 return OLEUI_FALSE;
256 /***********************************************************************
257 * OleUIPromptUserW (OLEDLG.13)
259 INT WINAPIV OleUIPromptUserW(
260 INT nTemplate, HWND hwndParent, ...)
262 FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
263 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
264 return OLEUI_FALSE;
267 /***********************************************************************
268 * OleUIObjectPropertiesA (OLEDLG.11)
270 UINT WINAPI OleUIObjectPropertiesA(
271 LPOLEUIOBJECTPROPSA lpOleUIObjectProps)
273 FIXME("(%p): stub\n", lpOleUIObjectProps);
274 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
275 return OLEUI_FALSE;
278 /***********************************************************************
279 * OleUIObjectPropertiesW (OLEDLG.21)
281 UINT WINAPI OleUIObjectPropertiesW(
282 LPOLEUIOBJECTPROPSW lpOleUIObjectProps)
284 FIXME("(%p): stub\n", lpOleUIObjectProps);
285 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
286 return OLEUI_FALSE;
289 /***********************************************************************
290 * OleUIChangeSourceA (OLEDLG.12)
292 UINT WINAPI OleUIChangeSourceA(
293 LPOLEUICHANGESOURCEA lpOleUIChangeSource)
295 FIXME("(%p): stub\n", lpOleUIChangeSource);
296 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
297 return OLEUI_FALSE;
300 /***********************************************************************
301 * OleUIChangeSourceW (OLEDLG.17)
303 UINT WINAPI OleUIChangeSourceW(
304 LPOLEUICHANGESOURCEW lpOleUIChangeSource)
306 FIXME("(%p): stub\n", lpOleUIChangeSource);
307 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
308 return OLEUI_FALSE;