Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4a8397a5
Commit
4a8397a5
authored
Apr 19, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Register InternetExplorer class factory in IEWinMain.
Based on a patch by Mike McCormack.
parent
c51aefdb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
1 deletion
+37
-1
factory.c
dlls/shdocvw/factory.c
+25
-0
iexplore.c
dlls/shdocvw/iexplore.c
+10
-1
shdocvw.h
dlls/shdocvw/shdocvw.h
+2
-0
No files found.
dlls/shdocvw/factory.c
View file @
4a8397a5
...
...
@@ -138,3 +138,28 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
/* As a last resort, figure if the CLSID belongs to a 'Shell Instance Object' */
return
SHDOCVW_GetShellInstanceObjectClassObject
(
rclsid
,
riid
,
ppv
);
}
HRESULT
register_class_object
(
BOOL
do_reg
)
{
HRESULT
hres
;
static
DWORD
cookie
;
static
IClassFactoryImpl
IEClassFactory
=
{
&
WBCF_Vtbl
,
InternetExplorer_Create
};
if
(
do_reg
)
{
hres
=
CoRegisterClassObject
(
&
CLSID_InternetExplorer
,
(
IUnknown
*
)
FACTORY
(
&
IEClassFactory
),
CLSCTX_SERVER
,
REGCLS_MULTIPLEUSE
|
REGCLS_SUSPENDED
,
&
cookie
);
if
(
FAILED
(
hres
))
{
ERR
(
"failed to register object %08lx
\n
"
,
hres
);
return
hres
;
}
hres
=
CoResumeClassObjects
();
if
(
SUCCEEDED
(
hres
))
return
hres
;
ERR
(
"failed to resume object %08lx
\n
"
,
hres
);
}
return
CoRevokeClassObject
(
cookie
);
}
dlls/shdocvw/iexplore.c
View file @
4a8397a5
...
...
@@ -590,11 +590,18 @@ DWORD WINAPI IEWinMain(LPSTR szCommandLine, int nShowWindow)
{
LPWSTR
url
;
DWORD
len
;
HRESULT
hres
;
FIXME
(
"%s %d
\n
"
,
debugstr_a
(
szCommandLine
),
nShowWindow
);
CoInitialize
(
NULL
);
hres
=
register_class_object
(
TRUE
);
if
(
FAILED
(
hres
))
{
CoUninitialize
();
ExitProcess
(
1
);
}
/* FIXME: parse the command line properly, handle -Embedding */
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
szCommandLine
,
-
1
,
NULL
,
0
);
...
...
@@ -605,7 +612,9 @@ DWORD WINAPI IEWinMain(LPSTR szCommandLine, int nShowWindow)
HeapFree
(
GetProcessHeap
(),
0
,
url
);
CoUninitialize
();
register_class_object
(
FALSE
);
CoUninitialize
();
ExitProcess
(
0
);
return
0
;
...
...
dlls/shdocvw/shdocvw.h
View file @
4a8397a5
...
...
@@ -200,4 +200,6 @@ extern void register_iewindow_class(void);
extern
void
unregister_iewindow_class
(
void
);
extern
BOOL
create_ie_window
(
LPCWSTR
url
);
HRESULT
register_class_object
(
BOOL
);
#endif
/* __WINE_SHDOCVW_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment