oledlg_main.c 14.7 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4
/*
 *	OLEDLG library
 *
 *	Copyright 1998	Patrik Stridvall
5 6 7 8 9 10 11 12 13 14 15 16 17
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * 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
Alexandre Julliard's avatar
Alexandre Julliard committed
19 20
 */

21 22
#define COBJMACROS

23 24
#include <stdarg.h>

25
#include "windef.h"
26
#include "winbase.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
27
#include "winerror.h"
28 29
#include "wingdi.h"
#include "winuser.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
30
#include "oledlg.h"
31
#include "ole2.h"
32
#include "oledlg_private.h"
33
#include "resource.h"
34 35

#include "wine/debug.h"
36

37
WINE_DEFAULT_DEBUG_CHANNEL(ole);
Patrik Stridvall's avatar
Patrik Stridvall committed
38

39 40
HINSTANCE OLEDLG_hInstance = 0;

41 42 43 44 45 46 47 48 49
UINT cf_embed_source;
UINT cf_embedded_object;
UINT cf_link_source;
UINT cf_object_descriptor;
UINT cf_link_src_descriptor;
UINT cf_ownerlink;
UINT cf_filename;
UINT cf_filenamew;

50 51 52
UINT oleui_msg_help;
UINT oleui_msg_enddialog;

53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
static void register_clipboard_formats(void)
{
    /* These used to be declared in olestd.h, but that seems to have been removed from the api */
    static const WCHAR CF_EMBEDSOURCEW[]          = { 'E','m','b','e','d',' ','S','o','u','r','c','e',0 };
    static const WCHAR CF_EMBEDDEDOBJECTW[]       = { 'E','m','b','e','d','d','e','d',' ','O','b','j','e','c','t',0 };
    static const WCHAR CF_LINKSOURCEW[]           = { 'L','i','n','k',' ','S','o','u','r','c','e',0 };
    static const WCHAR CF_OBJECTDESCRIPTORW[]     = { 'O','b','j','e','c','t',' ','D','e','s','c','r','i','p','t','o','r',0 };
    static const WCHAR CF_LINKSRCDESCRIPTORW[]    = { 'L','i','n','k',' ','S','o','u','r','c','e',' ','D','e','s','c','r','i','p','t','o','r',0 };
    static const WCHAR CF_OWNERLINKW[]            = { 'O','w','n','e','r','L','i','n','k',0 };
    static const WCHAR CF_FILENAMEW[]             = { 'F','i','l','e','N','a','m','e',0 };
    static const WCHAR CF_FILENAMEWW[]            = { 'F','i','l','e','N','a','m','e','W',0 };

    /* Load in the same order as native to make debugging easier */
    cf_object_descriptor    = RegisterClipboardFormatW(CF_OBJECTDESCRIPTORW);
    cf_link_src_descriptor  = RegisterClipboardFormatW(CF_LINKSRCDESCRIPTORW);
    cf_embed_source         = RegisterClipboardFormatW(CF_EMBEDSOURCEW);
    cf_embedded_object      = RegisterClipboardFormatW(CF_EMBEDDEDOBJECTW);
    cf_link_source          = RegisterClipboardFormatW(CF_LINKSOURCEW);
    cf_ownerlink            = RegisterClipboardFormatW(CF_OWNERLINKW);
    cf_filename             = RegisterClipboardFormatW(CF_FILENAMEW);
    cf_filenamew            = RegisterClipboardFormatW(CF_FILENAMEWW);
}

76 77 78 79 80 81
static void register_messages(void)
{
    oleui_msg_help             = RegisterWindowMessageW(SZOLEUI_MSG_HELPW);
    oleui_msg_enddialog        = RegisterWindowMessageW(SZOLEUI_MSG_ENDDIALOGW);
}

82 83 84 85 86
/***********************************************************************
 *		DllMain
 */
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
{
87
    TRACE("%p 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
88 89 90 91 92

    switch(fdwReason) {
    case DLL_PROCESS_ATTACH:
        DisableThreadLibraryCalls(hinstDLL);
        OLEDLG_hInstance = hinstDLL;
93
        register_clipboard_formats();
94
        register_messages();
95 96 97 98 99 100
        break;
    }
    return TRUE;
}


Alexandre Julliard's avatar
Alexandre Julliard committed
101
/***********************************************************************
102
 *           OleUIAddVerbMenuA (OLEDLG.1)
Alexandre Julliard's avatar
Alexandre Julliard committed
103
 */
104 105 106
BOOL WINAPI OleUIAddVerbMenuA(IOleObject *object, LPCSTR shorttype,
    HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
    BOOL addConvert, UINT idConvert, HMENU *lphMenu)
Alexandre Julliard's avatar
Alexandre Julliard committed
107
{
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
    WCHAR *shorttypeW = NULL;
    BOOL ret;

    TRACE("(%p, %s, %p, %d, %d, %d, %d, %d, %p)\n", object, debugstr_a(shorttype),
        hMenu, uPos, uIDVerbMin, uIDVerbMax, addConvert, idConvert, lphMenu);

    if (shorttype)
    {
        INT len = MultiByteToWideChar(CP_ACP, 0, shorttype, -1, NULL, 0);
        shorttypeW = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
        if (shorttypeW)
            MultiByteToWideChar(CP_ACP, 0, shorttype, -1, shorttypeW, len);
    }

    ret = OleUIAddVerbMenuW(object, shorttypeW, hMenu, uPos, uIDVerbMin, uIDVerbMax,
        addConvert, idConvert, lphMenu);
    HeapFree(GetProcessHeap(), 0, shorttypeW);
    return ret;
Alexandre Julliard's avatar
Alexandre Julliard committed
126 127
}

128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
static inline BOOL is_verb_in_range(const OLEVERB *verb, UINT idmin, UINT idmax)
{
    if (idmax == 0) return TRUE;
    return (verb->lVerb + idmin <= idmax);
}

static HRESULT get_next_insertable_verb(IEnumOLEVERB *enumverbs, UINT idmin, UINT idmax, OLEVERB *verb)
{
    memset(verb, 0, sizeof(*verb));

    while (IEnumOLEVERB_Next(enumverbs, 1, verb, NULL) == S_OK) {
        if (is_verb_in_range(verb, idmin, idmax) && (verb->grfAttribs & OLEVERBATTRIB_ONCONTAINERMENU))
            return S_OK;

        CoTaskMemFree(verb->lpszVerbName);
        memset(verb, 0, sizeof(*verb));
    }

    return S_FALSE;
}

static void insert_verb_to_menu(HMENU menu, UINT idmin, const OLEVERB *verb)
{
    InsertMenuW(menu, ~0, verb->fuFlags | MF_BYPOSITION | MF_STRING, verb->lVerb + idmin, verb->lpszVerbName);
}

Alexandre Julliard's avatar
Alexandre Julliard committed
154
/***********************************************************************
155
 *           OleUIAddVerbMenuW (OLEDLG.14)
Alexandre Julliard's avatar
Alexandre Julliard committed
156
 */
157 158
BOOL WINAPI OleUIAddVerbMenuW(IOleObject *object, LPCWSTR shorttype,
    HMENU hMenu, UINT uPos, UINT idmin, UINT idmax, BOOL addConvert, UINT idConvert, HMENU *ret_submenu)
Alexandre Julliard's avatar
Alexandre Julliard committed
159
{
160 161 162
    IEnumOLEVERB *enumverbs = NULL;
    LPOLESTR usertype = NULL;
    OLEVERB firstverb, verb;
163
    WCHAR *objecttype;
164
    WCHAR resstrW[32]; /* should be enough */
165
    DWORD_PTR args[2];
166
    BOOL singleverb;
167
    HMENU submenu;
168
    WCHAR *str;
169 170 171 172 173 174 175 176 177 178 179 180 181 182

    TRACE("(%p, %s, %p, %d, %d, %d, %d, %d, %p)\n", object, debugstr_w(shorttype),
        hMenu, uPos, idmin, idmax, addConvert, idConvert, ret_submenu);

    if (ret_submenu)
        *ret_submenu = NULL;

    if (!hMenu || !ret_submenu)
        return FALSE;

    /* check if we can get verbs at all */
    if (object)
        IOleObject_EnumVerbs(object, &enumverbs);

183
    LoadStringW(OLEDLG_hInstance, IDS_VERBMENU_OBJECT, resstrW, ARRAY_SIZE(resstrW));
184
    /* no object, or object without enumeration support */
185
    if (!object || !enumverbs) {
186
        RemoveMenu(hMenu, uPos, MF_BYPOSITION);
187
        InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_STRING|MF_GRAYED, idmin, resstrW);
188 189 190 191 192 193 194 195 196 197 198 199 200
        return FALSE;
    }

    /* root entry string */
    if (!shorttype && (IOleObject_GetUserType(object, USERCLASSTYPE_SHORT, &usertype) == S_OK))
        objecttype = usertype;
    else
        objecttype = (WCHAR*)shorttype;

    /* iterate through verbs */

    /* find first suitable verb */
    get_next_insertable_verb(enumverbs, idmin, idmax, &firstverb);
201
    singleverb = get_next_insertable_verb(enumverbs, idmin, idmax, &verb) != S_OK;
202

203
    if (singleverb && !addConvert) {
204
        LoadStringW(OLEDLG_hInstance, IDS_VERBMENU_SINGLEVERB_OBJECT, resstrW, ARRAY_SIZE(resstrW));
205 206 207

        args[0] = (DWORD_PTR)firstverb.lpszVerbName;
        args[1] = (DWORD_PTR)objecttype;
208

209
        FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_ARGUMENT_ARRAY,
210
            resstrW, 0, 0, (WCHAR*)&str, 0, (va_list *)args);
211 212 213 214

        RemoveMenu(hMenu, uPos, MF_BYPOSITION);
        InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_STRING, idmin, str);
        CoTaskMemFree(firstverb.lpszVerbName);
215
        HeapFree(GetProcessHeap(), 0, str);
216
        IEnumOLEVERB_Release(enumverbs);
217
        CoTaskMemFree(usertype);
218 219 220 221 222 223
        return TRUE;
    }

    submenu = CreatePopupMenu();
    insert_verb_to_menu(submenu, idmin, &firstverb);
    CoTaskMemFree(firstverb.lpszVerbName);
224 225 226 227 228

    if (!singleverb) {
        insert_verb_to_menu(submenu, idmin, &verb);
        CoTaskMemFree(verb.lpszVerbName);
    }
229 230 231 232 233 234

    while (get_next_insertable_verb(enumverbs, idmin, idmax, &verb) == S_OK) {
        insert_verb_to_menu(submenu, idmin, &verb);
        CoTaskMemFree(verb.lpszVerbName);
    }

235 236
    /* convert verb is at the bottom of a popup, separated from verbs */
    if (addConvert) {
237
        LoadStringW(OLEDLG_hInstance, IDS_VERBMENU_CONVERT, resstrW, ARRAY_SIZE(resstrW));
238 239 240 241
        InsertMenuW(submenu, ~0, MF_BYPOSITION|MF_SEPARATOR, 0, NULL);
        InsertMenuW(submenu, ~0, MF_BYPOSITION|MF_STRING, idConvert, resstrW);
    }

242 243 244 245
    if (submenu)
        *ret_submenu = submenu;

    /* now submenu is ready, add root entry to original menu, attach submenu */
246
    LoadStringW(OLEDLG_hInstance, IDS_VERBMENU_OBJECT_WITH_NAME, resstrW, ARRAY_SIZE(resstrW));
247 248 249

    args[0] = (DWORD_PTR)objecttype;
    FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_ARGUMENT_ARRAY,
250
        resstrW, 0, 0, (WCHAR*)&str, 0, (va_list *)args);
251 252 253

    InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_POPUP|MF_STRING, (UINT_PTR)submenu, str);
    HeapFree(GetProcessHeap(), 0, str);
254
    IEnumOLEVERB_Release(enumverbs);
255
    CoTaskMemFree(usertype);
256
    return TRUE;
Alexandre Julliard's avatar
Alexandre Julliard committed
257 258 259
}

/***********************************************************************
260
 *           OleUICanConvertOrActivateAs (OLEDLG.2)
Alexandre Julliard's avatar
Alexandre Julliard committed
261
 */
262 263
BOOL WINAPI OleUICanConvertOrActivateAs(
    REFCLSID rClsid, BOOL fIsLinkedObject, WORD wFormat)
Alexandre Julliard's avatar
Alexandre Julliard committed
264
{
265
  FIXME("(%p, %d, %hd): stub\n",
Alexandre Julliard's avatar
Alexandre Julliard committed
266 267
    rClsid, fIsLinkedObject, wFormat
  );
Alexandre Julliard's avatar
Alexandre Julliard committed
268 269 270 271 272
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return FALSE;
}

/***********************************************************************
273
 *           OleUIInsertObjectW (OLEDLG.20)
Alexandre Julliard's avatar
Alexandre Julliard committed
274
 */
275
UINT WINAPI OleUIInsertObjectW(LPOLEUIINSERTOBJECTW lpOleUIInsertObject)
Alexandre Julliard's avatar
Alexandre Julliard committed
276
{
277
  FIXME("(%p): stub\n", lpOleUIInsertObject);
Alexandre Julliard's avatar
Alexandre Julliard committed
278 279 280 281 282
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
283
 *           OleUIEditLinksA (OLEDLG.5)
Alexandre Julliard's avatar
Alexandre Julliard committed
284
 */
285
UINT WINAPI OleUIEditLinksA(LPOLEUIEDITLINKSA lpOleUIEditLinks)
Alexandre Julliard's avatar
Alexandre Julliard committed
286
{
287
  FIXME("(%p): stub\n", lpOleUIEditLinks);
Alexandre Julliard's avatar
Alexandre Julliard committed
288 289 290 291 292
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
293
 *           OleUIEditLinksW (OLEDLG.19)
Alexandre Julliard's avatar
Alexandre Julliard committed
294
 */
295
UINT WINAPI OleUIEditLinksW(LPOLEUIEDITLINKSW lpOleUIEditLinks)
Alexandre Julliard's avatar
Alexandre Julliard committed
296
{
297
  FIXME("(%p): stub\n", lpOleUIEditLinks);
Alexandre Julliard's avatar
Alexandre Julliard committed
298 299 300 301 302
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
303
 *           OleUIChangeIconA (OLEDLG.6)
Alexandre Julliard's avatar
Alexandre Julliard committed
304
 */
305 306
UINT WINAPI OleUIChangeIconA(
  LPOLEUICHANGEICONA lpOleUIChangeIcon)
Alexandre Julliard's avatar
Alexandre Julliard committed
307
{
308
  FIXME("(%p): stub\n", lpOleUIChangeIcon);
Alexandre Julliard's avatar
Alexandre Julliard committed
309 310 311 312 313
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
314
 *           OleUIChangeIconW (OLEDLG.16)
Alexandre Julliard's avatar
Alexandre Julliard committed
315
 */
316 317
UINT WINAPI OleUIChangeIconW(
  LPOLEUICHANGEICONW lpOleUIChangeIcon)
Alexandre Julliard's avatar
Alexandre Julliard committed
318
{
319
  FIXME("(%p): stub\n", lpOleUIChangeIcon);
Alexandre Julliard's avatar
Alexandre Julliard committed
320 321 322 323 324
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
325
 *           OleUIConvertA (OLEDLG.7)
Alexandre Julliard's avatar
Alexandre Julliard committed
326
 */
327
UINT WINAPI OleUIConvertA(LPOLEUICONVERTA lpOleUIConvert)
Alexandre Julliard's avatar
Alexandre Julliard committed
328
{
329
  FIXME("(%p): stub\n", lpOleUIConvert);
Alexandre Julliard's avatar
Alexandre Julliard committed
330 331 332 333 334
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
335
 *           OleUIConvertW (OLEDLG.18)
Alexandre Julliard's avatar
Alexandre Julliard committed
336
 */
337
UINT WINAPI OleUIConvertW(LPOLEUICONVERTW lpOleUIConvert)
Alexandre Julliard's avatar
Alexandre Julliard committed
338
{
339
  FIXME("(%p): stub\n", lpOleUIConvert);
Alexandre Julliard's avatar
Alexandre Julliard committed
340 341 342 343 344
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
345
 *           OleUIBusyA (OLEDLG.8)
Alexandre Julliard's avatar
Alexandre Julliard committed
346
 */
347
UINT WINAPI OleUIBusyA(LPOLEUIBUSYA lpOleUIBusy)
Alexandre Julliard's avatar
Alexandre Julliard committed
348
{
349
  FIXME("(%p): stub\n", lpOleUIBusy);
Alexandre Julliard's avatar
Alexandre Julliard committed
350 351 352 353 354
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
355
 *           OleUIBusyW (OLEDLG.15)
Alexandre Julliard's avatar
Alexandre Julliard committed
356
 */
357
UINT WINAPI OleUIBusyW(LPOLEUIBUSYW lpOleUIBusy)
Alexandre Julliard's avatar
Alexandre Julliard committed
358
{
359
  FIXME("(%p): stub\n", lpOleUIBusy);
Alexandre Julliard's avatar
Alexandre Julliard committed
360 361 362 363 364
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
365
 *           OleUIUpdateLinksA (OLEDLG.9)
Alexandre Julliard's avatar
Alexandre Julliard committed
366
 */
367 368 369
BOOL WINAPI OleUIUpdateLinksA(
  LPOLEUILINKCONTAINERA lpOleUILinkCntr,
  HWND hwndParent, LPSTR lpszTitle, INT cLinks)
Alexandre Julliard's avatar
Alexandre Julliard committed
370
{
371
  FIXME("(%p, %p, %s, %d): stub\n",
Alexandre Julliard's avatar
Alexandre Julliard committed
372 373
    lpOleUILinkCntr, hwndParent, debugstr_a(lpszTitle), cLinks
  );
Alexandre Julliard's avatar
Alexandre Julliard committed
374 375 376 377 378
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return FALSE;
}

/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
379
 *           OleUIUpdateLinksW (OLEDLG.23)
Alexandre Julliard's avatar
Alexandre Julliard committed
380
 */
381 382 383
BOOL WINAPI OleUIUpdateLinksW(
  LPOLEUILINKCONTAINERW lpOleUILinkCntr,
  HWND hwndParent, LPWSTR lpszTitle, INT cLinks)
Alexandre Julliard's avatar
Alexandre Julliard committed
384
{
385
  FIXME("(%p, %p, %s, %d): stub\n",
Alexandre Julliard's avatar
Alexandre Julliard committed
386 387
    lpOleUILinkCntr, hwndParent, debugstr_w(lpszTitle), cLinks
  );
Alexandre Julliard's avatar
Alexandre Julliard committed
388 389 390 391 392
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return FALSE;
}

/***********************************************************************
393
 *           OleUIPromptUserA (OLEDLG.10)
Alexandre Julliard's avatar
Alexandre Julliard committed
394
 */
395
INT WINAPIV OleUIPromptUserA(
396
  INT nTemplate, HWND hwndParent, ...)
Alexandre Julliard's avatar
Alexandre Julliard committed
397
{
398
  FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
Alexandre Julliard's avatar
Alexandre Julliard committed
399 400 401 402 403
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
404
 *           OleUIPromptUserW (OLEDLG.13)
Alexandre Julliard's avatar
Alexandre Julliard committed
405
 */
406
INT WINAPIV OleUIPromptUserW(
407
  INT nTemplate, HWND hwndParent, ...)
Alexandre Julliard's avatar
Alexandre Julliard committed
408
{
409
  FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
Alexandre Julliard's avatar
Alexandre Julliard committed
410 411 412 413 414
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
415
 *           OleUIObjectPropertiesA (OLEDLG.11)
Alexandre Julliard's avatar
Alexandre Julliard committed
416
 */
417 418
UINT WINAPI OleUIObjectPropertiesA(
  LPOLEUIOBJECTPROPSA lpOleUIObjectProps)
Alexandre Julliard's avatar
Alexandre Julliard committed
419
{
420
  FIXME("(%p): stub\n", lpOleUIObjectProps);
Alexandre Julliard's avatar
Alexandre Julliard committed
421 422 423 424 425
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
426
 *           OleUIObjectPropertiesW (OLEDLG.21)
Alexandre Julliard's avatar
Alexandre Julliard committed
427
 */
428 429
UINT WINAPI OleUIObjectPropertiesW(
  LPOLEUIOBJECTPROPSW lpOleUIObjectProps)
Alexandre Julliard's avatar
Alexandre Julliard committed
430
{
431
  FIXME("(%p): stub\n", lpOleUIObjectProps);
Alexandre Julliard's avatar
Alexandre Julliard committed
432 433 434 435 436
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
437
 *           OleUIChangeSourceA (OLEDLG.12)
Alexandre Julliard's avatar
Alexandre Julliard committed
438
 */
439 440
UINT WINAPI OleUIChangeSourceA(
  LPOLEUICHANGESOURCEA lpOleUIChangeSource)
Alexandre Julliard's avatar
Alexandre Julliard committed
441
{
442
  FIXME("(%p): stub\n", lpOleUIChangeSource);
Alexandre Julliard's avatar
Alexandre Julliard committed
443 444 445 446 447
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}

/***********************************************************************
448
 *           OleUIChangeSourceW (OLEDLG.17)
Alexandre Julliard's avatar
Alexandre Julliard committed
449
 */
450 451
UINT WINAPI OleUIChangeSourceW(
  LPOLEUICHANGESOURCEW lpOleUIChangeSource)
Alexandre Julliard's avatar
Alexandre Julliard committed
452
{
453
  FIXME("(%p): stub\n", lpOleUIChangeSource);
Alexandre Julliard's avatar
Alexandre Julliard committed
454 455 456
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return OLEUI_FALSE;
}