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
43a92c66
Commit
43a92c66
authored
Mar 26, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Added IUnknown_ProfferService implementation with tests.
parent
b6f92cea
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
244 additions
and
26 deletions
+244
-26
ordinal.c
dlls/shlwapi/ordinal.c
+39
-6
ordinal.c
dlls/shlwapi/tests/ordinal.c
+190
-20
shobjidl.idl
include/shobjidl.idl
+15
-0
No files found.
dlls/shlwapi/ordinal.c
View file @
43a92c66
...
...
@@ -1533,6 +1533,45 @@ HRESULT WINAPI IUnknown_QueryServiceExec(IUnknown *lpUnknown, REFIID service,
}
/*************************************************************************
* @ [SHLWAPI.514]
*
* Calls IProfferService methods to proffer/revoke specified service.
*
* PARAMS
* lpUnknown [I] Object to get an IServiceProvider interface from
* service [I] Service ID for IProfferService::Proffer/Revoke calls
* pService [I] Service to proffer. If NULL ::Revoke is called
* pCookie [IO] Group ID for IOleCommandTarget::Exec() call
*
* RETURNS
* Success: S_OK. IProffer method returns S_OK
* Failure: An HRESULT error code
*
* NOTES
* lpUnknown is expected to support the IServiceProvider interface.
*/
HRESULT
WINAPI
IUnknown_ProfferService
(
IUnknown
*
lpUnknown
,
REFGUID
service
,
IServiceProvider
*
pService
,
DWORD
*
pCookie
)
{
IProfferService
*
proffer
;
HRESULT
hr
;
TRACE
(
"%p %s %p %p
\n
"
,
lpUnknown
,
debugstr_guid
(
service
),
pService
,
pCookie
);
hr
=
IUnknown_QueryService
(
lpUnknown
,
&
IID_IProfferService
,
&
IID_IProfferService
,
(
void
**
)
&
proffer
);
if
(
hr
==
S_OK
)
{
if
(
pService
)
hr
=
IProfferService_ProfferService
(
proffer
,
service
,
pService
,
pCookie
);
else
hr
=
IProfferService_RevokeService
(
proffer
,
*
pCookie
);
IProfferService_Release
(
proffer
);
}
return
hr
;
}
/*************************************************************************
* @ [SHLWAPI.479]
*
* Call an object's UIActivateIO method.
...
...
@@ -4462,12 +4501,6 @@ INT WINAPIV ShellMessageBoxWrapW(HINSTANCE hInstance, HWND hWnd, LPCWSTR lpText,
return
ret
;
}
HRESULT
WINAPI
IUnknown_ProfferService
(
IUnknown
*
unk
,
void
*
x0
,
void
*
x1
,
void
*
x2
)
{
FIXME
(
"%p %p %p %p
\n
"
,
unk
,
x0
,
x1
,
x2
);
return
E_NOTIMPL
;
}
/***********************************************************************
* ZoneComputePaneSize [SHLWAPI.382]
*/
...
...
dlls/shlwapi/tests/ordinal.c
View file @
43a92c66
This diff is collapsed.
Click to expand it.
include/shobjidl.idl
View file @
43a92c66
...
...
@@ -1529,3 +1529,18 @@ cpp_quote("#define ACDD_VISIBLE 0x0001")
HRESULT ResetEnumerator();
}
[
object,
uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0),
pointer_default(unique)
]
interface IProfferService : IUnknown
{
HRESULT ProfferService(
[in] REFGUID service,
[in] IServiceProvider *pService,
[out] DWORD *pCookie);
HRESULT RevokeService([in] DWORD cookie);
}
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