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
82997149
Commit
82997149
authored
May 04, 2007
by
Andrey Turkin
Committed by
Alexandre Julliard
May 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Implement IUnknown_CPContainerInvokeParam.
parent
d49b251d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
1 deletion
+78
-1
ordinal.c
dlls/shlwapi/ordinal.c
+77
-0
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+1
-1
No files found.
dlls/shlwapi/ordinal.c
View file @
82997149
...
...
@@ -2962,6 +2962,83 @@ HRESULT WINAPI IConnectionPoint_OnChanged(IConnectionPoint* lpCP, DISPID dispID)
}
/*************************************************************************
* @ [SHLWAPI.286]
*
* IUnknown_CPContainerInvokeParam
*/
HRESULT
WINAPIV
IUnknown_CPContainerInvokeParam
(
IUnknown
*
container
,
REFIID
riid
,
DISPID
dispId
,
VARIANTARG
*
buffer
,
DWORD
cParams
,
...)
{
HRESULT
result
;
IConnectionPoint
*
iCP
;
IConnectionPointContainer
*
iCPC
;
if
(
!
container
)
return
E_NOINTERFACE
;
result
=
IUnknown_QueryInterface
(
container
,
&
IID_IConnectionPointContainer
,(
LPVOID
*
)
&
iCPC
);
if
(
SUCCEEDED
(
result
))
{
result
=
IConnectionPointContainer_FindConnectionPoint
(
iCPC
,
riid
,
&
iCP
);
IConnectionPointContainer_Release
(
iCPC
);
}
if
(
SUCCEEDED
(
result
))
{
ULONG
cnt
;
VARIANTARG
*
curvar
=
buffer
+
cParams
-
1
;
DISPPARAMS
dispParams
=
{
buffer
,
NULL
,
cParams
,
0
};
va_list
valist
;
va_start
(
valist
,
cParams
);
for
(
cnt
=
cParams
;
cnt
>
0
;
cnt
--
,
curvar
--
)
/* backwards for some reason */
{
enum
VARENUM
vt
=
va_arg
(
valist
,
enum
VARENUM
);
memset
(
curvar
,
0
,
sizeof
(
*
curvar
));
if
(
vt
&
VT_BYREF
)
{
V_VT
(
curvar
)
=
vt
;
V_BYREF
(
curvar
)
=
va_arg
(
valist
,
LPVOID
);
}
else
switch
(
vt
)
{
case
VT_BSTR
:
V_VT
(
curvar
)
=
vt
;
V_BSTR
(
curvar
)
=
va_arg
(
valist
,
BSTR
);
break
;
case
VT_DISPATCH
:
V_VT
(
curvar
)
=
vt
;
V_DISPATCH
(
curvar
)
=
va_arg
(
valist
,
IDispatch
*
);
break
;
case
VT_BOOL
:
V_VT
(
curvar
)
=
vt
;
V_BOOL
(
curvar
)
=
va_arg
(
valist
,
int
);
break
;
case
VT_UNKNOWN
:
V_VT
(
curvar
)
=
vt
;
V_UNKNOWN
(
curvar
)
=
va_arg
(
valist
,
IUnknown
*
);
break
;
case
VT_I4
:
default:
V_VT
(
curvar
)
=
VT_I4
;
V_I4
(
curvar
)
=
va_arg
(
valist
,
LONG
);
break
;
}
}
va_end
(
valist
);
result
=
SHLWAPI_InvokeByIID
(
iCP
,
riid
,
dispId
,
&
dispParams
);
IConnectionPoint_Release
(
iCP
);
}
return
result
;
}
/*************************************************************************
* @ [SHLWAPI.287]
*
* Notify an IConnectionPointContainer object of changes.
...
...
dlls/shlwapi/shlwapi.spec
View file @
82997149
...
...
@@ -283,7 +283,7 @@
283 stub -noname IConnectionPoint_InvokeWithCancel
284 stdcall -noname IConnectionPoint_SimpleInvoke(ptr long ptr)
285 stdcall -noname IConnectionPoint_OnChanged(ptr long)
286
stub -noname IUnknown_CPContainerInvokeParam
286
varargs -noname IUnknown_CPContainerInvokeParam(ptr ptr long ptr long)
287 stdcall -noname IUnknown_CPContainerOnChanged(ptr long)
288 stub -noname IUnknown_CPContainerInvokeIndirect
289 stdcall -noname PlaySoundWrapW(wstr long 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