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
18fb9ace
Commit
18fb9ace
authored
Jan 21, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement GetAdvise and SetAdvise.
parent
213c17e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
5 deletions
+29
-5
shlview.c
dlls/shell32/shlview.c
+29
-5
No files found.
dlls/shell32/shlview.c
View file @
18fb9ace
...
@@ -97,6 +97,9 @@ typedef struct
...
@@ -97,6 +97,9 @@ typedef struct
LISTVIEW_SORT_INFO
ListViewSortInfo
;
LISTVIEW_SORT_INFO
ListViewSortInfo
;
ULONG
hNotify
;
/* change notification handle */
ULONG
hNotify
;
/* change notification handle */
HANDLE
hAccel
;
HANDLE
hAccel
;
DWORD
dwAspects
;
DWORD
dwAdvf
;
IAdviseSink
*
pAdvSink
;
}
IShellViewImpl
;
}
IShellViewImpl
;
static
struct
IShellViewVtbl
svvt
;
static
struct
IShellViewVtbl
svvt
;
...
@@ -1664,9 +1667,12 @@ static ULONG WINAPI IShellView_fnRelease(IShellView * iface)
...
@@ -1664,9 +1667,12 @@ static ULONG WINAPI IShellView_fnRelease(IShellView * iface)
if
(
This
->
pSF2Parent
)
if
(
This
->
pSF2Parent
)
IShellFolder2_Release
(
This
->
pSF2Parent
);
IShellFolder2_Release
(
This
->
pSF2Parent
);
if
(
This
->
apidl
)
if
(
This
->
apidl
)
SHFree
(
This
->
apidl
);
SHFree
(
This
->
apidl
);
if
(
This
->
pAdvSink
)
IAdviseSink_Release
(
This
->
pAdvSink
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
}
return
refCount
;
return
refCount
;
...
@@ -2372,10 +2378,17 @@ static HRESULT WINAPI ISVViewObject_SetAdvise(
...
@@ -2372,10 +2378,17 @@ static HRESULT WINAPI ISVViewObject_SetAdvise(
_ICOM_THIS_From_IViewObject
(
IShellViewImpl
,
iface
);
_ICOM_THIS_From_IViewObject
(
IShellViewImpl
,
iface
);
FIXME
(
"Stub: This=%p
\n
"
,
This
);
FIXME
(
"partial stub: %p %08lx %08lx %p
\n
"
,
This
,
aspects
,
advf
,
pAdvSink
);
return
E_NOTIMPL
;
/* FIXME: we set the AdviseSink, but never use it to send any advice */
This
->
pAdvSink
=
pAdvSink
;
This
->
dwAspects
=
aspects
;
This
->
dwAdvf
=
advf
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
ISVViewObject_GetAdvise
(
static
HRESULT
WINAPI
ISVViewObject_GetAdvise
(
IViewObject
*
iface
,
IViewObject
*
iface
,
DWORD
*
pAspects
,
DWORD
*
pAspects
,
...
@@ -2385,9 +2398,20 @@ static HRESULT WINAPI ISVViewObject_GetAdvise(
...
@@ -2385,9 +2398,20 @@ static HRESULT WINAPI ISVViewObject_GetAdvise(
_ICOM_THIS_From_IViewObject
(
IShellViewImpl
,
iface
);
_ICOM_THIS_From_IViewObject
(
IShellViewImpl
,
iface
);
FIXME
(
"Stub: This=%p
\n
"
,
This
);
TRACE
(
"This=%p pAspects=%p pAdvf=%p ppAdvSink=%p
\n
"
,
This
,
pAspects
,
pAdvf
,
ppAdvSink
);
return
E_NOTIMPL
;
if
(
ppAdvSink
)
{
IAdviseSink_AddRef
(
This
->
pAdvSink
);
*
ppAdvSink
=
This
->
pAdvSink
;
}
if
(
pAspects
)
*
pAspects
=
This
->
dwAspects
;
if
(
pAdvf
)
*
pAdvf
=
This
->
dwAdvf
;
return
S_OK
;
}
}
...
...
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