Initialize the output buffer parameters to 0 in RegQueryValue*
[wine.git] / ole / oledlg.c
blobf7835d4645488f1c3fb3b0a56db3afa69237b151
1 /*
2 * OLEDLG library
4 * Copyright 1998 Patrik Stridvall
5 */
7 #include "windef.h"
8 #include "winbase.h"
9 #include "winerror.h"
10 #include "oledlg.h"
11 #include "debug.h"
12 #include "ole2.h"
14 DEFAULT_DEBUG_CHANNEL(ole)
15 /***********************************************************************
16 * OleUIAddVerbMenu32A (OLEDLG.1)
18 BOOL WINAPI OleUIAddVerbMenuA(
19 LPOLEOBJECT lpOleObj, LPCSTR lpszShortType,
20 HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
21 BOOL bAddConvert, UINT idConvert, HMENU *lphMenu)
23 FIXME(ole, "(%p, %s, 0x%08x, %d, %d, %d, %d, %d, %p): stub\n",
24 lpOleObj, debugstr_a(lpszShortType),
25 hMenu, uPos, uIDVerbMin, uIDVerbMax,
26 bAddConvert, idConvert, lphMenu
28 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
29 return FALSE;
32 /***********************************************************************
33 * OleUIAddVerbMenu32W (OLEDLG.14)
35 BOOL WINAPI OleUIAddVerbMenuW(
36 LPOLEOBJECT lpOleObj, LPCWSTR lpszShortType,
37 HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
38 BOOL bAddConvert, UINT idConvert, HMENU *lphMenu)
40 FIXME(ole, "(%p, %s, 0x%08x, %d, %d, %d, %d, %d, %p): stub\n",
41 lpOleObj, debugstr_w(lpszShortType),
42 hMenu, uPos, uIDVerbMin, uIDVerbMax,
43 bAddConvert, idConvert, lphMenu
45 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
46 return FALSE;
49 /***********************************************************************
50 * OleUICanConvertOrActivateAs32 (OLEDLG.2)
52 BOOL WINAPI OleUICanConvertOrActivateAs(
53 REFCLSID rClsid, BOOL fIsLinkedObject, WORD wFormat)
55 FIXME(ole, "(%p, %d, %hd): stub\n",
56 rClsid, fIsLinkedObject, wFormat
58 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
59 return FALSE;
62 /***********************************************************************
63 * OleUIInsertObject32A (OLEDLG.3)
65 UINT WINAPI OleUIInsertObjectA(LPOLEUIINSERTOBJECTA lpOleUIInsertObject)
67 FIXME(ole, "(%p): stub\n", lpOleUIInsertObject);
68 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
69 return OLEUI_FALSE;
72 /***********************************************************************
73 * OleUIInsertObject32W (OLEDLG.20)
75 UINT WINAPI OleUIInsertObjectW(LPOLEUIINSERTOBJECTW lpOleUIInsertObject)
77 FIXME(ole, "(%p): stub\n", lpOleUIInsertObject);
78 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
79 return OLEUI_FALSE;
82 /***********************************************************************
83 * OleUIPasteSpecial32A (OLEDLG.4)
85 UINT WINAPI OleUIPasteSpecialA(LPOLEUIPASTESPECIALA lpOleUIPasteSpecial)
87 FIXME(ole, "(%p): stub\n", lpOleUIPasteSpecial);
88 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
89 return OLEUI_FALSE;
92 /***********************************************************************
93 * OleUIPasteSpecial32W (OLEDLG.22)
95 UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW lpOleUIPasteSpecial)
97 FIXME(ole, "(%p): stub\n", lpOleUIPasteSpecial);
98 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
99 return OLEUI_FALSE;
102 /***********************************************************************
103 * OleUIEditLinks32A (OLEDLG.5)
105 UINT WINAPI OleUIEditLinksA(LPOLEUIEDITLINKSA lpOleUIEditLinks)
107 FIXME(ole, "(%p): stub\n", lpOleUIEditLinks);
108 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
109 return OLEUI_FALSE;
112 /***********************************************************************
113 * OleUIEditLinks32W (OLEDLG.19)
115 UINT WINAPI OleUIEditLinksW(LPOLEUIEDITLINKSW lpOleUIEditLinks)
117 FIXME(ole, "(%p): stub\n", lpOleUIEditLinks);
118 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
119 return OLEUI_FALSE;
122 /***********************************************************************
123 * OleUIChangeIcon32A (OLEDLG.6)
125 UINT WINAPI OleUIChangeIconA(
126 LPOLEUICHANGEICONA lpOleUIChangeIcon)
128 FIXME(ole, "(%p): stub\n", lpOleUIChangeIcon);
129 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
130 return OLEUI_FALSE;
133 /***********************************************************************
134 * OleUIChangeIcon32W (OLEDLG.16)
136 UINT WINAPI OleUIChangeIconW(
137 LPOLEUICHANGEICONW lpOleUIChangeIcon)
139 FIXME(ole, "(%p): stub\n", lpOleUIChangeIcon);
140 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
141 return OLEUI_FALSE;
144 /***********************************************************************
145 * OleUIConvert32A (OLEDLG.7)
147 UINT WINAPI OleUIConvertA(LPOLEUICONVERTA lpOleUIConvert)
149 FIXME(ole, "(%p): stub\n", lpOleUIConvert);
150 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
151 return OLEUI_FALSE;
154 /***********************************************************************
155 * OleUIConvert32W (OLEDLG.18)
157 UINT WINAPI OleUIConvertW(LPOLEUICONVERTW lpOleUIConvert)
159 FIXME(ole, "(%p): stub\n", lpOleUIConvert);
160 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
161 return OLEUI_FALSE;
164 /***********************************************************************
165 * OleUIBusy32A (OLEDLG.8)
167 UINT WINAPI OleUIBusyA(LPOLEUIBUSYA lpOleUIBusy)
169 FIXME(ole, "(%p): stub\n", lpOleUIBusy);
170 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
171 return OLEUI_FALSE;
174 /***********************************************************************
175 * OleUIBusy32W (OLEDLG.15)
177 UINT WINAPI OleUIBusyW(LPOLEUIBUSYW lpOleUIBusy)
179 FIXME(ole, "(%p): stub\n", lpOleUIBusy);
180 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
181 return OLEUI_FALSE;
184 /***********************************************************************
185 * OleUIUpdateLinks32A (OLEDLG.9)
187 BOOL WINAPI OleUIUpdateLinksA(
188 LPOLEUILINKCONTAINERA lpOleUILinkCntr,
189 HWND hwndParent, LPSTR lpszTitle, INT cLinks)
191 FIXME(ole,"(%p, 0x%08x, %s, %d): stub\n",
192 lpOleUILinkCntr, hwndParent, debugstr_a(lpszTitle), cLinks
194 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
195 return FALSE;
198 /***********************************************************************
199 * OleUIUpdateLinks32W (OLEDLG.?)
200 * FIXME
201 * I haven't been able to find the ordinal for this function,
202 * This means it can't be called from outside the DLL.
204 BOOL WINAPI OleUIUpdateLinksW(
205 LPOLEUILINKCONTAINERW lpOleUILinkCntr,
206 HWND hwndParent, LPWSTR lpszTitle, INT cLinks)
208 FIXME(ole, "(%p, 0x%08x, %s, %d): stub\n",
209 lpOleUILinkCntr, hwndParent, debugstr_w(lpszTitle), cLinks
211 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
212 return FALSE;
215 /***********************************************************************
216 * OleUIPromptUser32A (OLEDLG.10)
218 INT __cdecl OleUIPromptUserA(
219 INT nTemplate, HWND hwndParent, ...)
221 FIXME(ole, "(%d, 0x%08x, ...): stub\n", nTemplate, hwndParent);
222 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
223 return OLEUI_FALSE;
226 /***********************************************************************
227 * OleUIPromptUser32W (OLEDLG.13)
229 INT __cdecl OleUIPromptUserW(
230 INT nTemplate, HWND hwndParent, ...)
232 FIXME(ole, "(%d, 0x%08x, ...): stub\n", nTemplate, hwndParent);
233 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
234 return OLEUI_FALSE;
237 /***********************************************************************
238 * OleUIObjectProperties32A (OLEDLG.11)
240 UINT WINAPI OleUIObjectPropertiesA(
241 LPOLEUIOBJECTPROPSA lpOleUIObjectProps)
243 FIXME(ole, "(%p): stub\n", lpOleUIObjectProps);
244 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
245 return OLEUI_FALSE;
248 /***********************************************************************
249 * OleUIObjectProperties32W (OLEDLG.21)
251 UINT WINAPI OleUIObjectPropertiesW(
252 LPOLEUIOBJECTPROPSW lpOleUIObjectProps)
254 FIXME(ole, "(%p): stub\n", lpOleUIObjectProps);
255 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
256 return OLEUI_FALSE;
259 /***********************************************************************
260 * OleUIChangeSource32A (OLEDLG.12)
262 UINT WINAPI OleUIChangeSourceA(
263 LPOLEUICHANGESOURCEA lpOleUIChangeSource)
265 FIXME(ole, "(%p): stub\n", lpOleUIChangeSource);
266 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
267 return OLEUI_FALSE;
270 /***********************************************************************
271 * OleUIChangeSource32W (OLEDLG.17)
273 UINT WINAPI OleUIChangeSourceW(
274 LPOLEUICHANGESOURCEW lpOleUIChangeSource)
276 FIXME(ole, "(%p): stub\n", lpOleUIChangeSource);
277 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
278 return OLEUI_FALSE;