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
ee144b66
Commit
ee144b66
authored
Mar 21, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleacc: Added window IEnumVARIANT stub.
parent
843f463d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
+66
-0
window.c
dlls/oleacc/window.c
+66
-0
No files found.
dlls/oleacc/window.c
View file @
ee144b66
...
@@ -28,6 +28,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(oleacc);
...
@@ -28,6 +28,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(oleacc);
typedef
struct
{
typedef
struct
{
IAccessible
IAccessible_iface
;
IAccessible
IAccessible_iface
;
IOleWindow
IOleWindow_iface
;
IOleWindow
IOleWindow_iface
;
IEnumVARIANT
IEnumVARIANT_iface
;
LONG
ref
;
LONG
ref
;
}
Window
;
}
Window
;
...
@@ -49,6 +50,8 @@ static HRESULT WINAPI Window_QueryInterface(IAccessible *iface, REFIID riid, voi
...
@@ -49,6 +50,8 @@ static HRESULT WINAPI Window_QueryInterface(IAccessible *iface, REFIID riid, voi
*
ppv
=
iface
;
*
ppv
=
iface
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IOleWindow
))
{
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IOleWindow
))
{
*
ppv
=
&
This
->
IOleWindow_iface
;
*
ppv
=
&
This
->
IOleWindow_iface
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IEnumVARIANT
))
{
*
ppv
=
&
This
->
IEnumVARIANT_iface
;
}
else
{
}
else
{
WARN
(
"no interface: %s
\n
"
,
debugstr_guid
(
riid
));
WARN
(
"no interface: %s
\n
"
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
*
ppv
=
NULL
;
...
@@ -346,6 +349,68 @@ static const IOleWindowVtbl WindowOleWindowVtbl = {
...
@@ -346,6 +349,68 @@ static const IOleWindowVtbl WindowOleWindowVtbl = {
Window_OleWindow_ContextSensitiveHelp
Window_OleWindow_ContextSensitiveHelp
};
};
static
inline
Window
*
impl_from_Window_EnumVARIANT
(
IEnumVARIANT
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
Window
,
IEnumVARIANT_iface
);
}
static
HRESULT
WINAPI
Window_EnumVARIANT_QueryInterface
(
IEnumVARIANT
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
Window
*
This
=
impl_from_Window_EnumVARIANT
(
iface
);
return
IAccessible_QueryInterface
(
&
This
->
IAccessible_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
Window_EnumVARIANT_AddRef
(
IEnumVARIANT
*
iface
)
{
Window
*
This
=
impl_from_Window_EnumVARIANT
(
iface
);
return
IAccessible_AddRef
(
&
This
->
IAccessible_iface
);
}
static
ULONG
WINAPI
Window_EnumVARIANT_Release
(
IEnumVARIANT
*
iface
)
{
Window
*
This
=
impl_from_Window_EnumVARIANT
(
iface
);
return
IAccessible_Release
(
&
This
->
IAccessible_iface
);
}
static
HRESULT
WINAPI
Window_EnumVARIANT_Next
(
IEnumVARIANT
*
iface
,
ULONG
celt
,
VARIANT
*
rgVar
,
ULONG
*
pCeltFetched
)
{
Window
*
This
=
impl_from_Window_EnumVARIANT
(
iface
);
FIXME
(
"(%p)->(%u %p %p)
\n
"
,
This
,
celt
,
rgVar
,
pCeltFetched
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
Window_EnumVARIANT_Skip
(
IEnumVARIANT
*
iface
,
ULONG
celt
)
{
Window
*
This
=
impl_from_Window_EnumVARIANT
(
iface
);
FIXME
(
"(%p)->(%u)
\n
"
,
This
,
celt
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
Window_EnumVARIANT_Reset
(
IEnumVARIANT
*
iface
)
{
Window
*
This
=
impl_from_Window_EnumVARIANT
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
Window_EnumVARIANT_Clone
(
IEnumVARIANT
*
iface
,
IEnumVARIANT
**
ppEnum
)
{
Window
*
This
=
impl_from_Window_EnumVARIANT
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
ppEnum
);
return
E_NOTIMPL
;
}
static
const
IEnumVARIANTVtbl
WindowEnumVARIANTVtbl
=
{
Window_EnumVARIANT_QueryInterface
,
Window_EnumVARIANT_AddRef
,
Window_EnumVARIANT_Release
,
Window_EnumVARIANT_Next
,
Window_EnumVARIANT_Skip
,
Window_EnumVARIANT_Reset
,
Window_EnumVARIANT_Clone
};
HRESULT
create_window_object
(
HWND
hwnd
,
const
IID
*
iid
,
void
**
obj
)
HRESULT
create_window_object
(
HWND
hwnd
,
const
IID
*
iid
,
void
**
obj
)
{
{
Window
*
window
;
Window
*
window
;
...
@@ -360,6 +425,7 @@ HRESULT create_window_object(HWND hwnd, const IID *iid, void **obj)
...
@@ -360,6 +425,7 @@ HRESULT create_window_object(HWND hwnd, const IID *iid, void **obj)
window
->
IAccessible_iface
.
lpVtbl
=
&
WindowVtbl
;
window
->
IAccessible_iface
.
lpVtbl
=
&
WindowVtbl
;
window
->
IOleWindow_iface
.
lpVtbl
=
&
WindowOleWindowVtbl
;
window
->
IOleWindow_iface
.
lpVtbl
=
&
WindowOleWindowVtbl
;
window
->
IEnumVARIANT_iface
.
lpVtbl
=
&
WindowEnumVARIANTVtbl
;
window
->
ref
=
1
;
window
->
ref
=
1
;
hres
=
IAccessible_QueryInterface
(
&
window
->
IAccessible_iface
,
iid
,
obj
);
hres
=
IAccessible_QueryInterface
(
&
window
->
IAccessible_iface
,
iid
,
obj
);
...
...
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