Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9d6cf488
Commit
9d6cf488
authored
Jan 29, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink: Added HlinkResolveMonikerForData implementation.
parent
13c4b62a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
hlink.spec
dlls/hlink/hlink.spec
+1
-1
hlink_main.c
dlls/hlink/hlink_main.c
+33
-0
No files found.
dlls/hlink/hlink.spec
View file @
9d6cf488
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
10 stdcall HlinkNavigate(ptr ptr long ptr ptr ptr)
10 stdcall HlinkNavigate(ptr ptr long ptr ptr ptr)
11 stdcall HlinkUpdateStackItem(ptr ptr long ptr wstr wstr)
11 stdcall HlinkUpdateStackItem(ptr ptr long ptr wstr wstr)
12 stub HlinkOnRenameDocument
12 stub HlinkOnRenameDocument
14 st
ub HlinkResolveMonikerForData
14 st
dcall HlinkResolveMonikerForData(ptr long ptr long ptr ptr ptr)
15 stub HlinkResolveStringForData
15 stub HlinkResolveStringForData
16 stub OleSaveToStreamEx
16 stub OleSaveToStreamEx
18 stdcall HlinkParseDisplayName(ptr wstr long ptr ptr)
18 stdcall HlinkParseDisplayName(ptr wstr long ptr ptr)
...
...
dlls/hlink/hlink_main.c
View file @
9d6cf488
...
@@ -347,6 +347,39 @@ HRESULT WINAPI HlinkParseDisplayName(LPBC pibc, LPCWSTR pwzDisplayName, BOOL fNo
...
@@ -347,6 +347,39 @@ HRESULT WINAPI HlinkParseDisplayName(LPBC pibc, LPCWSTR pwzDisplayName, BOOL fNo
return
hres
;
return
hres
;
}
}
HRESULT
WINAPI
HlinkResolveMonikerForData
(
LPMONIKER
pimkReference
,
DWORD
reserved
,
LPBC
pibc
,
ULONG
cFmtetc
,
FORMATETC
*
rgFmtetc
,
IBindStatusCallback
*
pibsc
,
LPMONIKER
pimkBase
)
{
LPOLESTR
name
=
NULL
;
IBindCtx
*
bctx
;
DWORD
mksys
=
0
;
void
*
obj
=
NULL
;
HRESULT
hres
;
TRACE
(
"(%p %x %p %d %p %p %p)
\n
"
,
pimkReference
,
reserved
,
pibc
,
cFmtetc
,
rgFmtetc
,
pibsc
,
pimkBase
);
if
(
cFmtetc
||
rgFmtetc
||
pimkBase
)
FIXME
(
"Unsupported args
\n
"
);
hres
=
RegisterBindStatusCallback
(
pibc
,
pibsc
,
NULL
/* FIXME */
,
0
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IMoniker_IsSystemMoniker
(
pimkReference
,
&
mksys
);
if
(
SUCCEEDED
(
hres
)
&&
mksys
!=
MKSYS_URLMONIKER
)
WARN
(
"sysmk = %x
\n
"
,
mksys
);
/* FIXME: What is it for? */
CreateBindCtx
(
0
,
&
bctx
);
hres
=
IMoniker_GetDisplayName
(
pimkReference
,
bctx
,
NULL
,
&
name
);
IBindCtx_Release
(
bctx
);
if
(
SUCCEEDED
(
hres
))
{
TRACE
(
"got display name %s
\n
"
,
debugstr_w
(
name
));
CoTaskMemFree
(
name
);
}
return
IMoniker_BindToStorage
(
pimkReference
,
pibc
,
NULL
,
&
IID_IUnknown
,
&
obj
);
}
static
HRESULT
WINAPI
HLinkCF_fnQueryInterface
(
LPCLASSFACTORY
iface
,
static
HRESULT
WINAPI
HLinkCF_fnQueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
REFIID
riid
,
LPVOID
*
ppvObj
)
{
{
...
...
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