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
b23b4f5d
Commit
b23b4f5d
authored
Jun 06, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink: Implement DllRegisterServer.
parent
58709d22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
2 deletions
+45
-2
hlink.spec
dlls/hlink/hlink.spec
+2
-2
hlink_main.c
dlls/hlink/hlink_main.c
+42
-0
wine.inf
tools/wine.inf
+1
-0
No files found.
dlls/hlink/hlink.spec
View file @
b23b4f5d
...
...
@@ -29,5 +29,5 @@
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ st
ub -private DllRegisterServer
@ stub -private DllUnregisterServer
@ st
dcall -private DllRegisterServer()
#
@ stub -private DllUnregisterServer
dlls/hlink/hlink_main.c
View file @
b23b4f5d
...
...
@@ -26,6 +26,7 @@
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "winreg.h"
#include "ole2.h"
#include "unknwn.h"
...
...
@@ -312,3 +313,44 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
return
IClassFactory_QueryInterface
(
pcf
,
iid
,
ppv
);
}
static
HRESULT
register_clsid
(
LPCGUID
guid
)
{
static
const
WCHAR
clsid
[]
=
{
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
'\\'
,
0
};
static
const
WCHAR
ips
[]
=
{
'\\'
,
'I'
,
'n'
,
'p'
,
'r'
,
'o'
,
'c'
,
'S'
,
'e'
,
'r'
,
'v'
,
'e'
,
'r'
,
'3'
,
'2'
,
0
};
static
const
WCHAR
hlink
[]
=
{
'h'
,
'l'
,
'i'
,
'n'
,
'k'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
threading_model
[]
=
{
'T'
,
'h'
,
'r'
,
'e'
,
'a'
,
'd'
,
'i'
,
'n'
,
'g'
,
'M'
,
'o'
,
'd'
,
'e'
,
'l'
,
0
};
static
const
WCHAR
apartment
[]
=
{
'A'
,
'p'
,
'a'
,
'r'
,
't'
,
'm'
,
'e'
,
'n'
,
't'
,
0
};
WCHAR
path
[
80
];
HKEY
key
=
NULL
;
LONG
r
;
lstrcpyW
(
path
,
clsid
);
StringFromGUID2
(
guid
,
&
path
[
6
],
80
);
lstrcatW
(
path
,
ips
);
r
=
RegCreateKeyW
(
HKEY_CLASSES_ROOT
,
path
,
&
key
);
if
(
r
!=
ERROR_SUCCESS
)
return
E_FAIL
;
RegSetValueExW
(
key
,
NULL
,
0
,
REG_SZ
,
(
LPBYTE
)
hlink
,
sizeof
hlink
);
RegSetValueExW
(
key
,
threading_model
,
0
,
REG_SZ
,
(
LPBYTE
)
apartment
,
sizeof
apartment
);
RegCloseKey
(
key
);
return
S_OK
;
}
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
HRESULT
r
;
r
=
register_clsid
(
&
CLSID_StdHlink
);
if
(
SUCCEEDED
(
r
))
r
=
register_clsid
(
&
CLSID_StdHlinkBrowseContext
);
return
S_OK
;
}
tools/wine.inf
View file @
b23b4f5d
...
...
@@ -2091,6 +2091,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
11,,dswave.dll,1
11,,dxdiagn.dll,1
11,,hhctrl.ocx,1
11,,hlink.dll,1
11,,itss.dll,1
11,,mlang.dll,1
11,,mshtml.dll,1
...
...
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