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
e10f5b1d
Commit
e10f5b1d
authored
Jul 31, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Register SHDocVw typelib.
parent
61d48edf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
regsvr.c
dlls/shdocvw/regsvr.c
+29
-0
No files found.
dlls/shdocvw/regsvr.c
View file @
e10f5b1d
...
...
@@ -650,6 +650,29 @@ err:
return
(
res
==
ERROR_SUCCESS
)
?
S_OK
:
E_FAIL
;
}
static
HRESULT
register_typelib
(
void
)
{
ITypeLib
*
typelib
;
HRESULT
hres
;
static
WCHAR
wszSHDocVw
[]
=
{
's'
,
'h'
,
'd'
,
'o'
,
'c'
,
'v'
,
'w'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
hres
=
LoadTypeLibEx
(
wszSHDocVw
,
REGKIND_REGISTER
,
&
typelib
);
if
(
FAILED
(
hres
))
{
ERR
(
"Could not load typelib: %08lx
\n
"
,
hres
);
return
hres
;
}
ITypeLib_Release
(
typelib
);
return
hres
;
}
static
HRESULT
unregister_typelib
(
void
)
{
return
UnRegisterTypeLib
(
&
LIBID_SHDocVw
,
1
,
1
,
LOCALE_SYSTEM_DEFAULT
,
SYS_WIN32
);
}
/***********************************************************************
* DllRegisterServer (SHDOCVW.@)
*/
...
...
@@ -664,6 +687,9 @@ HRESULT WINAPI DllRegisterServer(void)
hr
=
register_interfaces
(
interface_list
);
if
(
SUCCEEDED
(
hr
))
hr
=
register_localserver
();
if
(
SUCCEEDED
(
hr
))
hr
=
register_typelib
();
return
hr
;
}
...
...
@@ -679,5 +705,8 @@ HRESULT WINAPI DllUnregisterServer(void)
hr
=
unregister_coclasses
(
coclass_list
);
if
(
SUCCEEDED
(
hr
))
hr
=
unregister_interfaces
(
interface_list
);
if
(
SUCCEEDED
(
hr
))
hr
=
unregister_typelib
();
return
hr
;
}
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