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
66aa3dc8
Commit
66aa3dc8
authored
Mar 27, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Complete IUnknown_SetOwner call.
parent
442364c1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
20 deletions
+51
-20
.gitignore
.gitignore
+1
-0
ordinal.c
dlls/shlwapi/ordinal.c
+17
-20
uuid.c
dlls/uuid/uuid.c
+1
-0
Makefile.in
include/Makefile.in
+1
-0
shdeprecated.idl
include/shdeprecated.idl
+31
-0
No files found.
.gitignore
View file @
66aa3dc8
...
...
@@ -193,6 +193,7 @@ include/qedit.h
include/richole.h
include/sensevts.h
include/servprov.h
include/shdeprecated.h
include/shldisp.h
include/shobjidl.h
include/shtypes.h
...
...
dlls/shlwapi/ordinal.c
View file @
66aa3dc8
...
...
@@ -42,6 +42,7 @@
#include "mmsystem.h"
#include "objbase.h"
#include "exdisp.h"
#include "shdeprecated.h"
#include "shlobj.h"
#include "shlwapi.h"
#include "shellapi.h"
...
...
@@ -1349,36 +1350,32 @@ HRESULT WINAPI IUnknown_GetWindow(IUnknown *lpUnknown, HWND *lphWnd)
/*************************************************************************
* @ [SHLWAPI.173]
*
* Call a
method on as as yet unident
ified object.
* Call a
SetOwner method of IShellService from spec
ified object.
*
* PARAMS
*
pUnk [I] Object supporting the unidentified interface,
*
arg [I] Argument for the call on the object.
*
iface [I] Object that supports IShellService
*
pUnk [I] Argument for the SetOwner call
*
* RETURNS
*
S_OK.
*
Corresponding return value from last call or E_FAIL for null input
*/
HRESULT
WINAPI
IUnknown_SetOwner
(
IUnknown
*
pUnk
,
ULONG
arg
)
HRESULT
WINAPI
IUnknown_SetOwner
(
IUnknown
*
iface
,
IUnknown
*
pUnk
)
{
static
const
GUID
guid_173
=
{
0x5836fb00
,
0x8187
,
0x11cf
,
{
0xa1
,
0x2b
,
0x00
,
0xaa
,
0x00
,
0x4a
,
0xe8
,
0x37
}
};
IMalloc
*
pUnk2
;
IShellService
*
service
;
HRESULT
hr
;
TRACE
(
"(%p,
%d)
\n
"
,
pUnk
,
arg
);
TRACE
(
"(%p,
%p)
\n
"
,
iface
,
pUnk
);
/* Note: arg may not be a ULONG and pUnk2 is for sure not an IMalloc -
* We use this interface as its vtable entry is compatible with the
* object in question.
* FIXME: Find out what this object is and where it should be defined.
*/
if
(
pUnk
&&
SUCCEEDED
(
IUnknown_QueryInterface
(
pUnk
,
&
guid_173
,
(
void
**
)
&
pUnk2
)))
if
(
!
iface
)
return
E_FAIL
;
hr
=
IUnknown_QueryInterface
(
iface
,
&
IID_IShellService
,
(
void
**
)
&
service
);
if
(
hr
==
S_OK
)
{
IMalloc_Alloc
(
pUnk2
,
arg
);
/* Faked call!! */
I
Malloc_Release
(
pUnk2
);
hr
=
IShellService_SetOwner
(
service
,
pUnk
);
I
ShellService_Release
(
service
);
}
return
S_OK
;
return
hr
;
}
/*************************************************************************
...
...
dlls/uuid/uuid.c
View file @
66aa3dc8
...
...
@@ -47,6 +47,7 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
#include "docobj.h"
#include "exdisp.h"
#include "shdeprecated.h"
#include "shlguid.h"
#include "shlobj.h"
#include "shldisp.h"
...
...
include/Makefile.in
View file @
66aa3dc8
...
...
@@ -77,6 +77,7 @@ PUBLIC_IDL_H_SRCS = \
richole.idl
\
sensevts.idl
\
servprov.idl
\
shdeprecated.idl
\
shldisp.idl
\
shobjidl.idl
\
shtypes.idl
\
...
...
include/shdeprecated.idl
0 → 100644
View file @
66aa3dc8
/*
*
Deprecated
shell
interfaces
*
*
Copyright
(
C
)
2010
Nikolay
Sivov
for
CodeWeavers
*
*
This
library
is
free
software
; you can redistribute it and/or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
; either
*
version
2.1
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
*
This
library
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
; without even the implied warranty of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
library
; if not, write to the Free Software
*
Foundation
,
Inc
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
import
"objidl.idl"
;
[
object
,
local
,
uuid
(
5836
fb00
-
8187
-
11
cf
-
a12b
-
00
aa004ae837
)
]
interface
IShellService
:
IUnknown
{
HRESULT
SetOwner
(
[
in
]
IUnknown
*
pUnk
)
;
}
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