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
1186e3ca
Commit
1186e3ca
authored
Aug 03, 2010
by
David Hedberg
Committed by
Alexandre Julliard
Aug 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorerframe: Implement TreeAdvise/TreeUnadvise.
parent
a5cb7652
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
5 deletions
+31
-5
nstc.c
dlls/explorerframe/nstc.c
+30
-4
Makefile.in
dlls/explorerframe/tests/Makefile.in
+1
-1
nstc.c
dlls/explorerframe/tests/nstc.c
+0
-0
No files found.
dlls/explorerframe/nstc.c
View file @
1186e3ca
...
...
@@ -44,6 +44,8 @@ typedef struct {
NSTCSTYLE
style
;
NSTCSTYLE2
style2
;
INameSpaceTreeControlEvents
*
pnstce
;
}
NSTC2Impl
;
static
const
DWORD
unsupported_styles
=
...
...
@@ -319,16 +321,40 @@ static HRESULT WINAPI NSTC2_fnTreeAdvise(INameSpaceTreeControl2* iface,
DWORD
*
pdwCookie
)
{
NSTC2Impl
*
This
=
(
NSTC2Impl
*
)
iface
;
FIXME
(
"stub, %p (%p, %p)
\n
"
,
This
,
punk
,
pdwCookie
);
return
E_NOTIMPL
;
HRESULT
hr
;
TRACE
(
"%p (%p, %p)
\n
"
,
This
,
punk
,
pdwCookie
);
*
pdwCookie
=
0
;
/* Only one client supported */
if
(
This
->
pnstce
)
return
E_FAIL
;
hr
=
IUnknown_QueryInterface
(
punk
,
&
IID_INameSpaceTreeControlEvents
,(
void
**
)
&
This
->
pnstce
);
if
(
SUCCEEDED
(
hr
))
{
*
pdwCookie
=
1
;
return
hr
;
}
return
E_FAIL
;
}
static
HRESULT
WINAPI
NSTC2_fnTreeUnadvise
(
INameSpaceTreeControl2
*
iface
,
DWORD
dwCookie
)
{
NSTC2Impl
*
This
=
(
NSTC2Impl
*
)
iface
;
FIXME
(
"stub, %p (%x)
\n
"
,
This
,
dwCookie
);
return
E_NOTIMPL
;
TRACE
(
"%p (%x)
\n
"
,
This
,
dwCookie
);
/* The cookie is ignored. */
if
(
This
->
pnstce
)
{
INameSpaceTreeControlEvents_Release
(
This
->
pnstce
);
This
->
pnstce
=
NULL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
NSTC2_fnInsertRoot
(
INameSpaceTreeControl2
*
iface
,
...
...
dlls/explorerframe/tests/Makefile.in
View file @
1186e3ca
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
explorerframe.dll
IMPORTS
=
uuid
user32 ole
32
IMPORTS
=
uuid
shell32 ole32 user
32
C_SRCS
=
\
nstc.c
...
...
dlls/explorerframe/tests/nstc.c
View file @
1186e3ca
This diff is collapsed.
Click to expand it.
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