Properly implement DllCanUnloadNow ref counting.
[wine/multimedia.git] / dlls / hhctrl.ocx / hhctrl.c
blob2a301126e41fcb47473d0e0ae83b2c07ef86354d
1 /*
2 * hhctrl implementation
4 * Copyright 2004 Krzysztof Foltman
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include <stdarg.h>
22 #include <string.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "wingdi.h"
26 #include "winnls.h"
27 #include "winuser.h"
28 #include "wine/debug.h"
29 #include "htmlhelp.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
33 HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD data)
35 FIXME("(%p, %s, %d, %ld): stub\n", caller, debugstr_w(filename), command, data);
37 /* if command is HH_DISPLAY_TOPIC just display an informative message for now */
38 if (command == HH_DISPLAY_TOPIC)
39 MessageBoxA( NULL, "HTML Help functionality is currently unimplemented.\n\n"
40 "Try installing Internet Explorer, or using a native hhctrl.ocx with the Mozilla ActiveX control.",
41 "Wine", MB_OK | MB_ICONEXCLAMATION );
42 return 0;
45 HWND WINAPI HtmlHelpA(HWND caller, LPCSTR filename, UINT command, DWORD data)
47 WCHAR *wfile = NULL;
48 DWORD len = MultiByteToWideChar( CP_ACP, 0, filename, -1, NULL, 0 );
49 HWND result;
51 wfile = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR));
52 MultiByteToWideChar( CP_ACP, 0, filename, -1, wfile, len );
54 result = HtmlHelpW( caller, wfile, command, data );
56 HeapFree( GetProcessHeap(), 0, wfile );
57 return result;
60 int WINAPI doWinMain(HMODULE hMod, LPSTR cmdline)
62 FIXME("(0x%x %s) stub!\n", (unsigned)hMod, debugstr_a(cmdline));
63 return -1;