ReactOS 0.4.16-dev-197-g92996da
shdocvw_main.c
Go to the documentation of this file.
1/*
2 * SHDOCVW - Internet Explorer Web Control
3 *
4 * Copyright 2001 John R. Sheets (for CodeWeavers)
5 * Copyright 2004 Mike McCormack (for CodeWeavers)
6 * Copyright 2008 Detlef Riekenberg
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 */
22
23#include <stdarg.h>
24#include <stdio.h>
25
26#include "wine/debug.h"
27
28#include "shdocvw.h"
29
30#include "winreg.h"
31#ifdef __REACTOS__
32#include "winnls.h"
33#include <shlguid_undoc.h>
34#include <rpcproxy.h> /* for __wine_register_resources / __wine_unregister_resources */
35#include "objects.h"
36#endif
37#include "shlwapi.h"
38#include "wininet.h"
39#include "isguids.h"
40
41#include "initguid.h"
42
44
46
49#ifdef __REACTOS__
51#endif
52
54{
55 static const WCHAR ieframe_dllW[] = {'i','e','f','r','a','m','e','.','d','l','l',0};
56
58 ieframe_instance = LoadLibraryW(ieframe_dllW);
59
60 return ieframe_instance;
61}
62
64{
66
67 static HRESULT (WINAPI *ieframe_DllGetClassObject)(REFCLSID,REFIID,void**);
68
69 if(!ieframe_DllGetClassObject) {
73
74 ieframe_DllGetClassObject = (void*)GetProcAddress(ieframe_instance, "DllGetClassObject");
75 if(!ieframe_DllGetClassObject)
77 }
78
79 return ieframe_DllGetClassObject(rclsid, riid, ppv);
80}
81
82/*************************************************************************
83 * DllGetClassObject (SHDOCVW.@)
84 */
86{
87 TRACE("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
88
89 if(IsEqualGUID(&CLSID_WebBrowser, rclsid)
90 || IsEqualGUID(&CLSID_WebBrowser_V1, rclsid)
91 || IsEqualGUID(&CLSID_InternetShortcut, rclsid)
92 || IsEqualGUID(&CLSID_CUrlHistory, rclsid)
93 || IsEqualGUID(&CLSID_TaskbarList, rclsid))
94 return get_ieframe_object(rclsid, riid, ppv);
95
96#ifdef __REACTOS__
97 {
99 if (SUCCEEDED(hr))
100 return hr;
101 }
102#endif
103
104 /* As a last resort, figure if the CLSID belongs to a 'Shell Instance Object' */
106}
107
108/***********************************************************************
109 * DllRegisterServer (shdocvw.@)
110 */
112{
113 TRACE("\n");
114#ifdef __REACTOS__
117#else
118 return S_OK;
119#endif
120}
121
122/***********************************************************************
123 * DllUnregisterServer (shdocvw.@)
124 */
126{
127 TRACE("\n");
128#ifdef __REACTOS__
131#else
132 return S_OK;
133#endif
134}
135
136/******************************************************************
137 * IEWinMain (SHDOCVW.101)
138 *
139 * Only returns on error.
140 */
141DWORD WINAPI IEWinMain(LPSTR szCommandLine, int nShowWindow)
142{
143 DWORD (WINAPI *pIEWinMain)(const WCHAR*,int);
144 WCHAR *cmdline;
145 DWORD ret, len;
146
147 TRACE("%s %d\n", debugstr_a(szCommandLine), nShowWindow);
148
149 pIEWinMain = (void*)GetProcAddress(get_ieframe_instance(), MAKEINTRESOURCEA(101));
150 if(!pIEWinMain)
151 ExitProcess(1);
152
153 len = MultiByteToWideChar(CP_ACP, 0, szCommandLine, -1, NULL, 0);
154 cmdline = heap_alloc(len*sizeof(WCHAR));
155 if(!cmdline)
156 ExitProcess(1);
157 MultiByteToWideChar(CP_ACP, 0, szCommandLine, -1, cmdline, len);
158
159 ret = pIEWinMain(cmdline, nShowWindow);
160
162 return ret;
163}
164
165/*************************************************************************
166 * SHDOCVW DllMain
167 */
169{
170 TRACE("%p 0x%x %p\n", hinst, fdwReason, fImpLoad);
171 switch (fdwReason)
172 {
174#ifdef __REACTOS__
175 instance = hinst;
177#endif
179 break;
181 if (fImpLoad) break;
184 break;
185 }
186 return TRUE;
187}
188
189/*************************************************************************
190 * DllCanUnloadNow (SHDOCVW.@)
191 */
193{
194#ifdef __REACTOS__
196 return S_FALSE;
197#endif
198 return SHDOCVW_refCount ? S_FALSE : S_OK;
199}
200
201/***********************************************************************
202 * DllGetVersion (SHDOCVW.@)
203 */
205{
206 if (info->cbSize != sizeof(DLLVERSIONINFO)) FIXME("support DLLVERSIONINFO2\n");
207
208 /* this is what IE6 on Windows 98 reports */
209 info->dwMajorVersion = 6;
210 info->dwMinorVersion = 0;
211 info->dwBuildNumber = 2600;
212 info->dwPlatformID = DLLVER_PLATFORM_WINDOWS;
213
214 return NOERROR;
215}
216
217/*************************************************************************
218 * DllInstall (SHDOCVW.@)
219 */
221{
222 FIXME("(%s, %s): stub!\n", bInstall ? "TRUE":"FALSE", debugstr_w(cmdline));
223
224 return S_OK;
225}
226
227/*************************************************************************
228 * SHDOCVW_LoadShell32
229 *
230 * makes sure the handle to shell32 is valid
231 */
233{
235 return TRUE;
236 return ((SHDOCVW_hshell32 = LoadLibraryA("shell32.dll")) != NULL);
237}
238
239/***********************************************************************
240 * @ (SHDOCVW.110)
241 *
242 * Called by Win98 explorer.exe main binary, definitely has 0
243 * parameters.
244 */
246{
247 FIXME("(), stub!\n");
248 return 0x0deadfeed;
249}
250
251/***********************************************************************
252 * @ (SHDOCVW.118)
253 *
254 * Called by Win98 explorer.exe main binary, definitely has only one
255 * parameter.
256 */
257static BOOL (WINAPI *pShellDDEInit)(BOOL start) = NULL;
258
260{
261 TRACE("(%d)\n", start);
262
263 if (!pShellDDEInit)
264 {
265 if (!SHDOCVW_LoadShell32())
266 return FALSE;
267 pShellDDEInit = (void *)GetProcAddress(SHDOCVW_hshell32, (LPCSTR)188);
268 }
269
270 if (pShellDDEInit)
271 return pShellDDEInit(start);
272 else
273 return FALSE;
274}
275
276/***********************************************************************
277 * @ (SHDOCVW.125)
278 *
279 * Called by Win98 explorer.exe main binary, definitely has 0
280 * parameters.
281 */
283{
284 FIXME("(), stub!\n");
285 return 0x0deadbee;
286}
287
288/***********************************************************************
289 * @ (SHDOCVW.130)
290 *
291 * Called by Emerge Desktop (alternative Windows Shell).
292 */
294{
295 FIXME("(%d), stub!\n", arg);
296 return 0x0deadbee;
297}
298
299/***********************************************************************
300 * SetQueryNetSessionCount (SHDOCVW.@)
301 */
303{
304 FIXME("(%u), stub!\n", arg);
305 return 0;
306}
307
308/**********************************************************************
309 * Some forwards (by ordinal) to SHLWAPI
310 */
311
313{
314 static const WCHAR shlwapiW[] = {'s','h','l','w','a','p','i','.','d','l','l','\0'};
315 static HANDLE h;
316
317 if (!h && !(h = GetModuleHandleW(shlwapiW))) return NULL;
318 return (void*)GetProcAddress(h, (const char*)ord);
319}
320
321/******************************************************************
322 * WhichPlatformFORWARD (SHDOCVW.@)
323 */
325{
326 static DWORD (WINAPI *p)(void);
327
328 if (p || (p = fetch_shlwapi_ordinal(276))) return p();
329 return 1; /* not integrated, see shlwapi.WhichPlatform */
330}
331
332/******************************************************************
333 * StopWatchModeFORWARD (SHDOCVW.@)
334 */
336{
337 static void (WINAPI *p)(void);
338
339 if (p || (p = fetch_shlwapi_ordinal(241))) p();
340}
341
342/******************************************************************
343 * StopWatchFlushFORWARD (SHDOCVW.@)
344 */
346{
347 static void (WINAPI *p)(void);
348
349 if (p || (p = fetch_shlwapi_ordinal(242))) p();
350}
351
352/******************************************************************
353 * StopWatchAFORWARD (SHDOCVW.@)
354 */
355DWORD WINAPI StopWatchAFORWARD(DWORD dwClass, LPCSTR lpszStr, DWORD dwUnknown,
356 DWORD dwMode, DWORD dwTimeStamp)
357{
358 static DWORD (WINAPI *p)(DWORD, LPCSTR, DWORD, DWORD, DWORD);
359
360 if (p || (p = fetch_shlwapi_ordinal(243)))
361 return p(dwClass, lpszStr, dwUnknown, dwMode, dwTimeStamp);
363}
364
365/******************************************************************
366 * StopWatchWFORWARD (SHDOCVW.@)
367 */
368DWORD WINAPI StopWatchWFORWARD(DWORD dwClass, LPCWSTR lpszStr, DWORD dwUnknown,
369 DWORD dwMode, DWORD dwTimeStamp)
370{
371 static DWORD (WINAPI *p)(DWORD, LPCWSTR, DWORD, DWORD, DWORD);
372
373 if (p || (p = fetch_shlwapi_ordinal(244)))
374 return p(dwClass, lpszStr, dwUnknown, dwMode, dwTimeStamp);
376}
377
378/******************************************************************
379 * URLSubRegQueryA (SHDOCVW.151)
380 */
382 LPSTR out, DWORD outlen, DWORD unknown)
383{
385 DWORD len;
386 LONG res;
387
388 TRACE("(%s, %s, %d, %p, %d, %d)\n", debugstr_a(regpath), debugstr_a(name),
389 type, out, outlen, unknown);
390
391 if (!out) return S_OK;
392
393 len = sizeof(buffer);
394 res = SHRegGetUSValueA(regpath, name, NULL, buffer, &len, FALSE, NULL, 0);
395 if (!res) {
396 lstrcpynA(out, buffer, outlen);
397 return S_OK;
398 }
399
400 return E_FAIL;
401}
402
403/******************************************************************
404 * ParseURLFromOutsideSourceW (SHDOCVW.170)
405 */
407{
409 WCHAR buffer_out[INTERNET_MAX_URL_LENGTH];
410 LPCWSTR ptr = url;
411 HRESULT hr;
412 DWORD needed;
413 DWORD len;
414 DWORD res;
415
416 TRACE("(%s, %p, %p, %p) len: %d, unknown: 0x%x\n", debugstr_w(url), out, plen, unknown,
417 plen ? *plen : 0, unknown ? *unknown : 0);
418
419 if (!PathIsURLW(ptr)) {
420 len = ARRAY_SIZE(buffer_in);
421 buffer_in[0] = 0;
423 TRACE("got 0x%x with %s\n", hr, debugstr_w(buffer_in));
424 if (hr == S_OK) {
425 /* we parsed the url to buffer_in */
426 ptr = buffer_in;
427 }
428 else
429 {
430 FIXME("call search hook for %s\n", debugstr_w(ptr));
431 }
432 }
433
434 len = ARRAY_SIZE(buffer_out);
435 buffer_out[0] = '\0';
437 needed = lstrlenW(buffer_out)+1;
438 TRACE("got 0x%x with %s (need %d)\n", hr, debugstr_w(buffer_out), needed);
439
440 res = 0;
441 if (*plen >= needed) {
442 if (out != NULL) {
443 lstrcpyW(out, buffer_out);
444 /* On success, 1 is returned for unicode version */
445 res = 1;
446 }
447 needed--;
448 }
449
450 *plen = needed;
451
452 TRACE("=> %d\n", res);
453 return res;
454}
455
456/******************************************************************
457 * ParseURLFromOutsideSourceA (SHDOCVW.169)
458 *
459 * See ParseURLFromOutsideSourceW
460 */
462{
464 LPWSTR urlW = NULL;
465 DWORD needed;
466 DWORD res;
467 DWORD len;
468
469 TRACE("(%s, %p, %p, %p) len: %d, unknown: 0x%x\n", debugstr_a(url), out, plen, unknown,
470 plen ? *plen : 0, unknown ? *unknown : 0);
471
472 if (url) {
473 len = MultiByteToWideChar(CP_ACP, 0, url, -1, NULL, 0);
474 urlW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
475 MultiByteToWideChar(CP_ACP, 0, url, -1, urlW, len);
476 }
477
480 HeapFree(GetProcessHeap(), 0, urlW);
481
482 needed = WideCharToMultiByte(CP_ACP, 0, buffer, -1, NULL, 0, NULL, NULL);
483
484 res = 0;
485 if (*plen >= needed) {
486 if (out != NULL) {
487 WideCharToMultiByte(CP_ACP, 0, buffer, -1, out, *plen, NULL, NULL);
488 /* On success, string size including terminating 0 is returned for ansi version */
489 res = needed;
490 }
491 needed--;
492 }
493
494 *plen = needed;
495
496 TRACE("=> %d\n", res);
497 return res;
498}
499
500/******************************************************************
501 * IEParseDisplayNameWithBCW (SHDOCVW.218)
502 */
504{
505 /* Guessing at parameter 3 based on IShellFolder's ParseDisplayName */
506 FIXME("stub: 0x%x %s %p %p\n",codepage,debugstr_w(lpszDisplayName),pbc,ppidl);
507 return E_FAIL;
508}
509
510/******************************************************************
511 * SHRestricted2W (SHDOCVW.159)
512 */
514{
515 FIXME("(%d %s %d) stub\n", res, debugstr_w(url), reserved);
516 return 0;
517}
518
519/******************************************************************
520 * SHRestricted2A (SHDOCVW.158)
521 *
522 * See SHRestricted2W
523 */
525{
526 LPWSTR urlW = NULL;
527 DWORD res;
528
529 TRACE("(%d, %s, %d)\n", restriction, debugstr_a(url), reserved);
530 if (url) {
532 urlW = heap_alloc(len * sizeof(WCHAR));
533 MultiByteToWideChar(CP_ACP, 0, url, -1, urlW, len);
534 }
535 res = SHRestricted2W(restriction, urlW, reserved);
536 heap_free(urlW);
537 return res;
538}
539
540/******************************************************************
541 * ImportPrivacySettings (SHDOCVW.@)
542 *
543 * Import global and/or per site privacy preferences from an xml file
544 *
545 * PARAMS
546 * filename [I] XML file to use
547 * pGlobalPrefs [IO] PTR to a usage flag for the global privacy preferences
548 * pPerSitePrefs [IO] PTR to a usage flag for the per site privacy preferences
549 *
550 * RETURNS
551 * Success: TRUE (the privacy preferences where updated)
552 * Failure: FALSE (the privacy preferences are unchanged)
553 *
554 * NOTES
555 * Set the flag to TRUE, when the related privacy preferences in the xml file
556 * should be used (parsed and overwrite the current settings).
557 * On return, the flag is TRUE, when the related privacy settings where used
558 *
559 */
560BOOL WINAPI ImportPrivacySettings(LPCWSTR filename, BOOL *pGlobalPrefs, BOOL * pPerSitePrefs)
561{
562 FIXME("(%s, %p->%d, %p->%d): stub\n", debugstr_w(filename),
563 pGlobalPrefs, pGlobalPrefs ? *pGlobalPrefs : 0,
564 pPerSitePrefs, pPerSitePrefs ? *pPerSitePrefs : 0);
565
566 if (pGlobalPrefs) *pGlobalPrefs = FALSE;
567 if (pPerSitePrefs) *pPerSitePrefs = FALSE;
568
569 return TRUE;
570}
571
572/******************************************************************
573 * ResetProfileSharing (SHDOCVW.164)
574 */
576{
577 FIXME("(%p) stub\n", hwnd);
578 return E_NOTIMPL;
579}
580
581/******************************************************************
582 * InstallReg_RunDLL (SHDOCVW.@)
583 */
585{
586 FIXME("(%p %p %s %x)\n", hwnd, handle, debugstr_a(cmdline), show);
587}
588
589/******************************************************************
590 * DoFileDownload (SHDOCVW.@)
591 */
593{
594 FIXME("(%s) stub\n", debugstr_w(filename));
595 return FALSE;
596}
597
598/******************************************************************
599 * DoOrganizeFavDlgW (SHDOCVW.@)
600 */
602{
603 FIXME("(%p %s) stub\n", hwnd, debugstr_w(initDir));
604 return FALSE;
605}
606
607/******************************************************************
608 * DoOrganizeFavDlg (SHDOCVW.@)
609 */
611{
612 LPWSTR initDirW = NULL;
613 BOOL res;
614
615 TRACE("(%p %s)\n", hwnd, debugstr_a(initDir));
616
617 if (initDir) {
618 DWORD len = MultiByteToWideChar(CP_ACP, 0, initDir, -1, NULL, 0);
619 initDirW = heap_alloc(len * sizeof(WCHAR));
620 MultiByteToWideChar(CP_ACP, 0, initDir, -1, initDirW, len);
621 }
622 res = DoOrganizeFavDlgW(hwnd, initDirW);
623 heap_free(initDirW);
624 return res;
625}
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
#define ARRAY_SIZE(A)
Definition: main.h:20
#define FIXME(fmt,...)
Definition: precomp.h:53
DWORD LPVOID fImpLoad
Definition: misc.cpp:142
#define E_NOTIMPL
Definition: ddrawi.h:99
#define E_FAIL
Definition: ddrawi.h:102
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static HINSTANCE instance
Definition: main.c:40
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1605
#define GetProcessHeap()
Definition: compat.h:736
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
#define CP_ACP
Definition: compat.h:109
#define lstrcpynA
Definition: compat.h:751
#define GetProcAddress(x, y)
Definition: compat.h:753
#define HeapAlloc
Definition: compat.h:733
#define FreeLibrary(x)
Definition: compat.h:748
#define HeapFree(x, y, z)
Definition: compat.h:735
#define lstrcpyW
Definition: compat.h:749
#define WideCharToMultiByte
Definition: compat.h:111
#define MultiByteToWideChar
Definition: compat.h:110
#define LoadLibraryW(x)
Definition: compat.h:747
#define lstrlenW
Definition: compat.h:750
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:838
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
VOID WINAPI ExitProcess(IN UINT uExitCode)
Definition: proc.c:1487
LONG WINAPI SHRegGetUSValueA(LPCSTR pSubKey, LPCSTR pValue, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData, BOOL flagIgnoreHKCU, LPVOID pDefaultData, DWORD wDefaultDataSize)
Definition: reg.c:561
HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized, LPDWORD pcchCanonicalized, DWORD dwFlags)
Definition: url.c:282
HRESULT WINAPI UrlApplySchemeW(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut, DWORD dwFlags)
Definition: url.c:1817
BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
Definition: url.c:2432
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
#define INTERNET_MAX_URL_LENGTH
Definition: session.c:1418
r reserved
Definition: btrfs.c:3006
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint start
Definition: gl.h:1545
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLuint res
Definition: glext.h:9613
GLuint buffer
Definition: glext.h:5915
GLfloat GLfloat p
Definition: glext.h:8902
GLenum GLsizei len
Definition: glext.h:6722
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
#define SUCCEEDED(hr)
Definition: intsafe.h:50
const char * filename
Definition: ioapi.h:137
#define debugstr_guid
Definition: kernel32.h:35
#define debugstr_a
Definition: kernel32.h:31
#define debugstr_w
Definition: kernel32.h:32
static PVOID ptr
Definition: dispmode.c:27
static HINSTANCE hinst
Definition: edit.c:551
static const WCHAR url[]
Definition: encode.c:1432
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
#define BOOL
Definition: nt_native.h:43
#define DWORD
Definition: nt_native.h:44
EXTERN_C HRESULT SHDOCVW_DllCanUnloadNow(VOID)
Definition: objects.cpp:47
EXTERN_C HRESULT SHDOCVW_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
Definition: objects.cpp:57
EXTERN_C HRESULT SHDOCVW_DllUnregisterServer(VOID)
Definition: objects.cpp:90
EXTERN_C HRESULT SHDOCVW_DllRegisterServer(VOID)
Definition: objects.cpp:84
EXTERN_C VOID SHDOCVW_Init(HINSTANCE hInstance)
Definition: objects.cpp:41
interface IBindCtx * LPBC
Definition: objfwd.h:18
long LONG
Definition: pedump.c:60
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define REFIID
Definition: guiddef.h:118
#define REFCLSID
Definition: guiddef.h:117
static FILE * out
Definition: regtests2xml.c:44
HRESULT __wine_unregister_resources(HMODULE module) DECLSPEC_HIDDEN
Definition: register.c:110
HRESULT __wine_register_resources(HMODULE module) DECLSPEC_HIDDEN
Definition: register.c:98
HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppvClassObj) DECLSPEC_HIDDEN
Definition: shlinstobj.c:365
DWORD WINAPI IEWinMain(LPSTR szCommandLine, int nShowWindow)
Definition: shdocvw_main.c:141
BOOL WINAPI DoFileDownload(LPWSTR filename)
Definition: shdocvw_main.c:592
HRESULT WINAPI IEParseDisplayNameWithBCW(DWORD codepage, LPCWSTR lpszDisplayName, LPBC pbc, LPITEMIDLIST *ppidl)
Definition: shdocvw_main.c:503
DWORD WINAPI ParseURLFromOutsideSourceA(LPCSTR url, LPSTR out, LPDWORD plen, LPDWORD unknown)
Definition: shdocvw_main.c:461
HRESULT WINAPI DllRegisterServer(void)
Definition: shdocvw_main.c:111
DWORD WINAPI SHRestricted2A(DWORD restriction, LPCSTR url, DWORD reserved)
Definition: shdocvw_main.c:524
LONG SHDOCVW_refCount
Definition: shdocvw_main.c:45
BOOL WINAPI ShellDDEInit(BOOL start)
Definition: shdocvw_main.c:259
static HRESULT get_ieframe_object(REFCLSID rclsid, REFIID riid, void **ppv)
Definition: shdocvw_main.c:63
HRESULT WINAPI ResetProfileSharing(HWND hwnd)
Definition: shdocvw_main.c:575
HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *info)
Definition: shdocvw_main.c:204
DWORD WINAPI WhichPlatformFORWARD(void)
Definition: shdocvw_main.c:324
DWORD WINAPI RunInstallUninstallStubs(void)
Definition: shdocvw_main.c:282
DWORD WINAPI StopWatchAFORWARD(DWORD dwClass, LPCSTR lpszStr, DWORD dwUnknown, DWORD dwMode, DWORD dwTimeStamp)
Definition: shdocvw_main.c:355
DWORD WINAPI RunInstallUninstallStubs2(int arg)
Definition: shdocvw_main.c:293
BOOL WINAPI DoOrganizeFavDlgW(HWND hwnd, LPCWSTR initDir)
Definition: shdocvw_main.c:601
HRESULT WINAPI DllUnregisterServer(void)
Definition: shdocvw_main.c:125
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad)
Definition: shdocvw_main.c:168
HRESULT WINAPI DllInstall(BOOL bInstall, LPCWSTR cmdline)
Definition: shdocvw_main.c:220
DWORD WINAPI StopWatchWFORWARD(DWORD dwClass, LPCWSTR lpszStr, DWORD dwUnknown, DWORD dwMode, DWORD dwTimeStamp)
Definition: shdocvw_main.c:368
static HINSTANCE ieframe_instance
Definition: shdocvw_main.c:48
void WINAPI StopWatchModeFORWARD(void)
Definition: shdocvw_main.c:335
BOOL WINAPI DoOrganizeFavDlg(HWND hwnd, LPCSTR initDir)
Definition: shdocvw_main.c:610
void WINAPI StopWatchFlushFORWARD(void)
Definition: shdocvw_main.c:345
void WINAPI InstallReg_RunDLL(HWND hwnd, HINSTANCE handle, LPCSTR cmdline, INT show)
Definition: shdocvw_main.c:584
DWORD WINAPI WinList_Init(void)
Definition: shdocvw_main.c:245
static BOOL SHDOCVW_LoadShell32(void)
Definition: shdocvw_main.c:232
DWORD WINAPI SetQueryNetSessionCount(DWORD arg)
Definition: shdocvw_main.c:302
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
Definition: shdocvw_main.c:85
HRESULT WINAPI URLSubRegQueryA(LPCSTR regpath, LPCSTR name, DWORD type, LPSTR out, DWORD outlen, DWORD unknown)
Definition: shdocvw_main.c:381
HRESULT WINAPI DllCanUnloadNow(void)
Definition: shdocvw_main.c:192
BOOL WINAPI ImportPrivacySettings(LPCWSTR filename, BOOL *pGlobalPrefs, BOOL *pPerSitePrefs)
Definition: shdocvw_main.c:560
static HINSTANCE get_ieframe_instance(void)
Definition: shdocvw_main.c:53
DWORD WINAPI ParseURLFromOutsideSourceW(LPCWSTR url, LPWSTR out, LPDWORD plen, LPDWORD unknown)
Definition: shdocvw_main.c:406
static void * fetch_shlwapi_ordinal(UINT_PTR ord)
Definition: shdocvw_main.c:312
static HMODULE SHDOCVW_hshell32
Definition: shdocvw_main.c:47
DWORD WINAPI SHRestricted2W(DWORD res, LPCWSTR url, DWORD reserved)
Definition: shdocvw_main.c:513
HRESULT hr
Definition: shlfolder.c:183
#define URL_APPLY_GUESSSCHEME
Definition: shlwapi.h:1229
#define URL_APPLY_DEFAULT
Definition: shlwapi.h:1230
#define URL_ESCAPE_SPACES_ONLY
Definition: shlwapi.h:1242
#define DLLVER_PLATFORM_WINDOWS
Definition: shlwapi.h:1989
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41
#define TRACE(s)
Definition: solgame.cpp:4
TCHAR * cmdline
Definition: stretchblt.cpp:32
Definition: name.c:39
uint32_t * LPDWORD
Definition: typedefs.h:59
int32_t INT
Definition: typedefs.h:58
int ret
int codepage
Definition: win_iconv.c:156
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define HRESULT
Definition: msvc.h:7
#define WINAPI
Definition: msvc.h:6
#define S_FALSE
Definition: winerror.h:2357
#define NOERROR
Definition: winerror.h:2354
#define CLASS_E_CLASSNOTAVAILABLE
Definition: winerror.h:2663
#define MAKEINTRESOURCEA(i)
Definition: winuser.h:581
const char * LPCSTR
Definition: xmlstorage.h:183
char * LPSTR
Definition: xmlstorage.h:182
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
char CHAR
Definition: xmlstorage.h:175