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
b63e9a78
Commit
b63e9a78
authored
Apr 30, 2007
by
Andrey Turkin
Committed by
Alexandre Julliard
May 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Implement IConnectionPoint_SimpleInvoke.
parent
f9a54ebc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
8 deletions
+52
-8
ordinal.c
dlls/shlwapi/ordinal.c
+51
-7
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+1
-1
No files found.
dlls/shlwapi/ordinal.c
View file @
b63e9a78
...
...
@@ -2856,17 +2856,61 @@ HRESULT WINAPI SHPackDispParams(LPVOID w, LPVOID x, LPVOID y, LPVOID z)
}
/*************************************************************************
* SHLWAPI_InvokeByIID
*
* This helper function calls IDispatch::Invoke for each sink
* which implements given iid or IDispatch.
*
*/
static
HRESULT
SHLWAPI_InvokeByIID
(
IConnectionPoint
*
iCP
,
REFIID
iid
,
DISPID
dispId
,
DISPPARAMS
*
dispParams
)
{
IEnumConnections
*
enumerator
;
CONNECTDATA
rgcd
;
HRESULT
result
=
IConnectionPoint_EnumConnections
(
iCP
,
&
enumerator
);
if
(
FAILED
(
result
))
return
result
;
while
(
IEnumConnections_Next
(
enumerator
,
1
,
&
rgcd
,
NULL
)
==
S_OK
)
{
IDispatch
*
dispIface
;
if
(
SUCCEEDED
(
IUnknown_QueryInterface
(
rgcd
.
pUnk
,
iid
,
(
LPVOID
*
)
&
dispIface
))
||
SUCCEEDED
(
IUnknown_QueryInterface
(
rgcd
.
pUnk
,
&
IID_IDispatch
,
(
LPVOID
*
)
&
dispIface
)))
{
IDispatch_Invoke
(
dispIface
,
dispId
,
&
IID_NULL
,
0
,
DISPATCH_METHOD
,
dispParams
,
NULL
,
NULL
,
NULL
);
IDispatch_Release
(
dispIface
);
}
}
IEnumConnections_Release
(
enumerator
);
return
S_OK
;
}
/*************************************************************************
* @ [SHLWAPI.284]
*
*
_
IConnectionPoint_SimpleInvoke
*
IConnectionPoint_SimpleInvoke
*/
DWORD
WINAPI
IConnectionPoint_SimpleInvoke
(
LPVOID
x
,
LPVOID
y
,
LPVOID
z
)
HRESULT
WINAPI
IConnectionPoint_SimpleInvoke
(
IConnectionPoint
*
iCP
,
DISPID
dispId
,
DISPPARAMS
*
dispParams
)
{
FIXME
(
"(%p %p %p) stub
\n
"
,
x
,
y
,
z
);
return
0
;
IID
iid
;
HRESULT
result
;
TRACE
(
"(%p)->(0x%x %p)
\n
"
,
iCP
,
dispId
,
dispParams
);
result
=
IConnectionPoint_GetConnectionInterface
(
iCP
,
&
iid
);
if
(
SUCCEEDED
(
result
))
result
=
SHLWAPI_InvokeByIID
(
iCP
,
&
iid
,
dispId
,
dispParams
);
return
result
;
}
/*************************************************************************
...
...
dlls/shlwapi/shlwapi.spec
View file @
b63e9a78
...
...
@@ -281,7 +281,7 @@
281 stdcall -noname SHPackDispParamsV(ptr ptr ptr ptr)
282 stdcall -noname SHPackDispParams(ptr ptr ptr ptr)
283 stub -noname IConnectionPoint_InvokeWithCancel
284 stdcall -noname IConnectionPoint_SimpleInvoke(ptr
ptr
ptr)
284 stdcall -noname IConnectionPoint_SimpleInvoke(ptr
long
ptr)
285 stdcall -noname IConnectionPoint_OnChanged(ptr long)
286 stub -noname IUnknown_CPContainerInvokeParam
287 stdcall -noname IUnknown_CPContainerOnChanged(ptr long)
...
...
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