ReactOS 0.4.17-dev-573-g8315b8c
window.c File Reference
#include "oleacc_private.h"
#include "commctrl.h"
#include "wine/debug.h"
#include "wine/heap.h"
Include dependency graph for window.c:

Go to the source code of this file.

Classes

class  Window
 

Macros

#define COBJMACROS
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (oleacc)
 
static Windowimpl_from_Window (IAccessible *iface)
 
static HRESULT WINAPI Window_QueryInterface (IAccessible *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI Window_AddRef (IAccessible *iface)
 
static ULONG WINAPI Window_Release (IAccessible *iface)
 
static HRESULT WINAPI Window_GetTypeInfoCount (IAccessible *iface, UINT *pctinfo)
 
static HRESULT WINAPI Window_GetTypeInfo (IAccessible *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI Window_GetIDsOfNames (IAccessible *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI Window_Invoke (IAccessible *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI Window_get_accParent (IAccessible *iface, IDispatch **ppdispParent)
 
static HRESULT WINAPI Window_get_accChildCount (IAccessible *iface, LONG *pcountChildren)
 
static HRESULT WINAPI Window_get_accChild (IAccessible *iface, VARIANT varChildID, IDispatch **ppdispChild)
 
static HRESULT WINAPI Window_get_accName (IAccessible *iface, VARIANT varID, BSTR *pszName)
 
static HRESULT WINAPI Window_get_accValue (IAccessible *iface, VARIANT varID, BSTR *pszValue)
 
static HRESULT WINAPI Window_get_accDescription (IAccessible *iface, VARIANT varID, BSTR *pszDescription)
 
static HRESULT WINAPI Window_get_accRole (IAccessible *iface, VARIANT varID, VARIANT *pvarRole)
 
static HRESULT WINAPI Window_get_accState (IAccessible *iface, VARIANT varID, VARIANT *pvarState)
 
static HRESULT WINAPI Window_get_accHelp (IAccessible *iface, VARIANT varID, BSTR *pszHelp)
 
static HRESULT WINAPI Window_get_accHelpTopic (IAccessible *iface, BSTR *pszHelpFile, VARIANT varID, LONG *pidTopic)
 
static HRESULT WINAPI Window_get_accKeyboardShortcut (IAccessible *iface, VARIANT varID, BSTR *pszKeyboardShortcut)
 
static HRESULT WINAPI Window_get_accFocus (IAccessible *iface, VARIANT *pvarID)
 
static HRESULT WINAPI Window_get_accSelection (IAccessible *iface, VARIANT *pvarID)
 
static HRESULT WINAPI Window_get_accDefaultAction (IAccessible *iface, VARIANT varID, BSTR *pszDefaultAction)
 
static HRESULT WINAPI Window_accSelect (IAccessible *iface, LONG flagsSelect, VARIANT varID)
 
static HRESULT WINAPI Window_accLocation (IAccessible *iface, LONG *pxLeft, LONG *pyTop, LONG *pcxWidth, LONG *pcyHeight, VARIANT varID)
 
static HRESULT WINAPI Window_accNavigate (IAccessible *iface, LONG navDir, VARIANT varStart, VARIANT *pvarEnd)
 
static HRESULT WINAPI Window_accHitTest (IAccessible *iface, LONG x, LONG y, VARIANT *v)
 
static HRESULT WINAPI Window_accDoDefaultAction (IAccessible *iface, VARIANT varID)
 
static HRESULT WINAPI Window_put_accName (IAccessible *iface, VARIANT varID, BSTR pszName)
 
static HRESULT WINAPI Window_put_accValue (IAccessible *iface, VARIANT varID, BSTR pszValue)
 
static Windowimpl_from_Window_OleWindow (IOleWindow *iface)
 
static HRESULT WINAPI Window_OleWindow_QueryInterface (IOleWindow *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI Window_OleWindow_AddRef (IOleWindow *iface)
 
static ULONG WINAPI Window_OleWindow_Release (IOleWindow *iface)
 
static HRESULT WINAPI Window_OleWindow_GetWindow (IOleWindow *iface, HWND *hwnd)
 
static HRESULT WINAPI Window_OleWindow_ContextSensitiveHelp (IOleWindow *iface, BOOL fEnterMode)
 
static Windowimpl_from_Window_EnumVARIANT (IEnumVARIANT *iface)
 
static HRESULT WINAPI Window_EnumVARIANT_QueryInterface (IEnumVARIANT *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI Window_EnumVARIANT_AddRef (IEnumVARIANT *iface)
 
static ULONG WINAPI Window_EnumVARIANT_Release (IEnumVARIANT *iface)
 
static HRESULT WINAPI Window_EnumVARIANT_Next (IEnumVARIANT *iface, ULONG celt, VARIANT *rgVar, ULONG *pCeltFetched)
 
static HRESULT WINAPI Window_EnumVARIANT_Skip (IEnumVARIANT *iface, ULONG celt)
 
static HRESULT WINAPI Window_EnumVARIANT_Reset (IEnumVARIANT *iface)
 
static HRESULT WINAPI Window_EnumVARIANT_Clone (IEnumVARIANT *iface, IEnumVARIANT **ppEnum)
 
static Windowimpl_from_Window_ServiceProvider (IServiceProvider *iface)
 
static HRESULT WINAPI Window_ServiceProvider_QueryInterface (IServiceProvider *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI Window_ServiceProvider_AddRef (IServiceProvider *iface)
 
static ULONG WINAPI Window_ServiceProvider_Release (IServiceProvider *iface)
 
static HRESULT WINAPI Window_ServiceProvider_QueryService (IServiceProvider *iface, REFGUID guid_service, REFIID riid, void **ppv)
 
HRESULT create_window_object (HWND hwnd, const IID *iid, void **obj)
 

Variables

static const IAccessibleVtbl WindowVtbl
 
static const IOleWindowVtbl WindowOleWindowVtbl
 
static const IEnumVARIANTVtbl WindowEnumVARIANTVtbl
 
static const IServiceProviderVtbl WindowServiceProviderVtbl
 
static const struct win_class_data classes []
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 19 of file window.c.

Function Documentation

◆ create_window_object()

HRESULT create_window_object ( HWND  hwnd,
const IID iid,
void **  obj 
)

Definition at line 500 of file window.c.

501{
502 Window *window;
504
505 if(!IsWindow(hwnd))
506 return E_FAIL;
507
508 window = heap_alloc_zero(sizeof(Window));
509 if(!window)
510 return E_OUTOFMEMORY;
511
513
514 window->IAccessible_iface.lpVtbl = &WindowVtbl;
515 window->IOleWindow_iface.lpVtbl = &WindowOleWindowVtbl;
516 window->IEnumVARIANT_iface.lpVtbl = &WindowEnumVARIANTVtbl;
517 window->IServiceProvider_iface.lpVtbl = &WindowServiceProviderVtbl;
518 window->ref = 1;
519 window->hwnd = hwnd;
520
521 hres = IAccessible_QueryInterface(&window->IAccessible_iface, iid, obj);
522 IAccessible_Release(&window->IAccessible_iface);
523 return hres;
524}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_FAIL
Definition: ddrawi.h:102
const struct win_class_data * find_class_data(HWND hwnd, const struct win_class_data *classes)
Definition: main.c:59
static const IOleWindowVtbl WindowOleWindowVtbl
Definition: window.c:380
static const IServiceProviderVtbl WindowServiceProviderVtbl
Definition: window.c:487
static const IAccessibleVtbl WindowVtbl
Definition: window.c:309
static const struct win_class_data classes[]
Definition: window.c:494
static const IEnumVARIANTVtbl WindowEnumVARIANTVtbl
Definition: window.c:440
HRESULT hres
Definition: protocol.c:465
static IHTMLWindow2 * window
Definition: events.c:77
Definition: window.c:29
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
BOOL WINAPI IsWindow(_In_opt_ HWND)

Referenced by CreateStdAccessibleObject().

◆ impl_from_Window()

◆ impl_from_Window_EnumVARIANT()

static Window * impl_from_Window_EnumVARIANT ( IEnumVARIANT iface)
inlinestatic

◆ impl_from_Window_OleWindow()

static Window * impl_from_Window_OleWindow ( IOleWindow iface)
inlinestatic

◆ impl_from_Window_ServiceProvider()

static Window * impl_from_Window_ServiceProvider ( IServiceProvider iface)
inlinestatic

◆ Window_accDoDefaultAction()

static HRESULT WINAPI Window_accDoDefaultAction ( IAccessible iface,
VARIANT  varID 
)
static

Definition at line 288 of file window.c.

289{
290 Window *This = impl_from_Window(iface);
291 FIXME("(%p)->(%s)\n", This, debugstr_variant(&varID));
292 return E_NOTIMPL;
293}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99
static Window * impl_from_Window(IAccessible *iface)
Definition: window.c:40
static const char * debugstr_variant(const VARIANT *var)
Definition: dom.c:505

◆ Window_accHitTest()

static HRESULT WINAPI Window_accHitTest ( IAccessible iface,
LONG  x,
LONG  y,
VARIANT v 
)
static

Definition at line 253 of file window.c.

254{
255 Window *This = impl_from_Window(iface);
256 IDispatch *disp;
257 POINT pt;
258 HRESULT hr;
259 RECT rect;
260
261 TRACE("(%p)->(%ld %ld %p)\n", This, x, y, v);
262
263 V_VT(v) = VT_EMPTY;
264 if (!GetClientRect(This->hwnd, &rect))
265 return E_FAIL;
266 if (!ClientToScreen(This->hwnd, (POINT*)&rect) ||
267 !ClientToScreen(This->hwnd, &((POINT*)&rect)[1]))
268 return E_FAIL;
269 pt.x = x;
270 pt.y = y;
271 if (PtInRect(&rect, pt))
272 {
274 if (FAILED(hr))
275 return hr;
276 if (!disp)
277 return E_FAIL;
278
279 V_VT(v) = VT_DISPATCH;
280 V_DISPATCH(v) = disp;
281 return S_OK;
282 }
283
284 FIXME("non-client area not handled yet\n");
285 return E_NOTIMPL;
286}
RECT rect
Definition: combotst.c:67
HRESULT hr
Definition: delayimp.cpp:582
@ VT_EMPTY
Definition: compat.h:2295
@ VT_DISPATCH
Definition: compat.h:2304
HRESULT WINAPI AccessibleObjectFromWindow(HWND hwnd, DWORD dwObjectID, REFIID riid, void **ppvObject)
Definition: main.c:386
#define pt(x, y)
Definition: drawing.c:79
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
const GLdouble * v
Definition: gl.h:2040
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
#define V_VT(A)
Definition: oleauto.h:211
#define V_DISPATCH(A)
Definition: oleauto.h:239
const GUID IID_IDispatch
#define TRACE(s)
Definition: solgame.cpp:4
#define OBJID_CLIENT
Definition: winable.h:19
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
BOOL WINAPI PtInRect(_In_ LPCRECT, _In_ POINT)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)

◆ Window_accLocation()

static HRESULT WINAPI Window_accLocation ( IAccessible iface,
LONG pxLeft,
LONG pyTop,
LONG pcxWidth,
LONG pcyHeight,
VARIANT  varID 
)
static

Definition at line 236 of file window.c.

238{
239 Window *This = impl_from_Window(iface);
240 FIXME("(%p)->(%p %p %p %p %s)\n", This, pxLeft, pyTop,
241 pcxWidth, pcyHeight, debugstr_variant(&varID));
242 return E_NOTIMPL;
243}

◆ Window_accNavigate()

static HRESULT WINAPI Window_accNavigate ( IAccessible iface,
LONG  navDir,
VARIANT  varStart,
VARIANT pvarEnd 
)
static

Definition at line 245 of file window.c.

247{
248 Window *This = impl_from_Window(iface);
249 FIXME("(%p)->(%ld %s %p)\n", This, navDir, debugstr_variant(&varStart), pvarEnd);
250 return E_NOTIMPL;
251}

◆ Window_accSelect()

static HRESULT WINAPI Window_accSelect ( IAccessible iface,
LONG  flagsSelect,
VARIANT  varID 
)
static

Definition at line 229 of file window.c.

230{
231 Window *This = impl_from_Window(iface);
232 FIXME("(%p)->(%lx %s)\n", This, flagsSelect, debugstr_variant(&varID));
233 return E_NOTIMPL;
234}

◆ Window_AddRef()

static ULONG WINAPI Window_AddRef ( IAccessible iface)
static

Definition at line 71 of file window.c.

72{
75
76 TRACE("(%p) ref = %lu\n", This, ref);
77 return ref;
78}
#define InterlockedIncrement
Definition: armddk.h:53
Definition: send.c:48
uint32_t ULONG
Definition: typedefs.h:59

◆ Window_EnumVARIANT_AddRef()

static ULONG WINAPI Window_EnumVARIANT_AddRef ( IEnumVARIANT iface)
static

Definition at line 399 of file window.c.

400{
402 return IAccessible_AddRef(&This->IAccessible_iface);
403}
static Window * impl_from_Window_EnumVARIANT(IEnumVARIANT *iface)
Definition: window.c:388

◆ Window_EnumVARIANT_Clone()

static HRESULT WINAPI Window_EnumVARIANT_Clone ( IEnumVARIANT iface,
IEnumVARIANT **  ppEnum 
)
static

Definition at line 433 of file window.c.

434{
436 FIXME("(%p)->(%p)\n", This, ppEnum);
437 return E_NOTIMPL;
438}

◆ Window_EnumVARIANT_Next()

static HRESULT WINAPI Window_EnumVARIANT_Next ( IEnumVARIANT iface,
ULONG  celt,
VARIANT rgVar,
ULONG pCeltFetched 
)
static

Definition at line 411 of file window.c.

413{
415 FIXME("(%p)->(%lu %p %p)\n", This, celt, rgVar, pCeltFetched);
416 return E_NOTIMPL;
417}

◆ Window_EnumVARIANT_QueryInterface()

static HRESULT WINAPI Window_EnumVARIANT_QueryInterface ( IEnumVARIANT iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 393 of file window.c.

394{
396 return IAccessible_QueryInterface(&This->IAccessible_iface, riid, ppv);
397}
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39

◆ Window_EnumVARIANT_Release()

static ULONG WINAPI Window_EnumVARIANT_Release ( IEnumVARIANT iface)
static

Definition at line 405 of file window.c.

406{
408 return IAccessible_Release(&This->IAccessible_iface);
409}

◆ Window_EnumVARIANT_Reset()

static HRESULT WINAPI Window_EnumVARIANT_Reset ( IEnumVARIANT iface)
static

Definition at line 426 of file window.c.

427{
429 FIXME("(%p)\n", This);
430 return E_NOTIMPL;
431}

◆ Window_EnumVARIANT_Skip()

static HRESULT WINAPI Window_EnumVARIANT_Skip ( IEnumVARIANT iface,
ULONG  celt 
)
static

Definition at line 419 of file window.c.

420{
422 FIXME("(%p)->(%lu)\n", This, celt);
423 return E_NOTIMPL;
424}

◆ Window_get_accChild()

static HRESULT WINAPI Window_get_accChild ( IAccessible iface,
VARIANT  varChildID,
IDispatch **  ppdispChild 
)
static

Definition at line 140 of file window.c.

142{
143 Window *This = impl_from_Window(iface);
144 FIXME("(%p)->(%s %p)\n", This, debugstr_variant(&varChildID), ppdispChild);
145 return E_NOTIMPL;
146}

◆ Window_get_accChildCount()

static HRESULT WINAPI Window_get_accChildCount ( IAccessible iface,
LONG pcountChildren 
)
static

Definition at line 133 of file window.c.

134{
135 Window *This = impl_from_Window(iface);
136 FIXME("(%p)->(%p)\n", This, pcountChildren);
137 return E_NOTIMPL;
138}

◆ Window_get_accDefaultAction()

static HRESULT WINAPI Window_get_accDefaultAction ( IAccessible iface,
VARIANT  varID,
BSTR pszDefaultAction 
)
static

Definition at line 221 of file window.c.

223{
224 Window *This = impl_from_Window(iface);
225 FIXME("(%p)->(%s %p)\n", This, debugstr_variant(&varID), pszDefaultAction);
226 return E_NOTIMPL;
227}

◆ Window_get_accDescription()

static HRESULT WINAPI Window_get_accDescription ( IAccessible iface,
VARIANT  varID,
BSTR pszDescription 
)
static

Definition at line 162 of file window.c.

164{
165 Window *This = impl_from_Window(iface);
166 FIXME("(%p)->(%s %p)\n", This, debugstr_variant(&varID), pszDescription);
167 return E_NOTIMPL;
168}

◆ Window_get_accFocus()

static HRESULT WINAPI Window_get_accFocus ( IAccessible iface,
VARIANT pvarID 
)
static

Definition at line 207 of file window.c.

208{
209 Window *This = impl_from_Window(iface);
210 FIXME("(%p)->(%p)\n", This, pvarID);
211 return E_NOTIMPL;
212}

◆ Window_get_accHelp()

static HRESULT WINAPI Window_get_accHelp ( IAccessible iface,
VARIANT  varID,
BSTR pszHelp 
)
static

Definition at line 184 of file window.c.

185{
186 Window *This = impl_from_Window(iface);
187 FIXME("(%p)->(%s %p)\n", This, debugstr_variant(&varID), pszHelp);
188 return E_NOTIMPL;
189}

◆ Window_get_accHelpTopic()

static HRESULT WINAPI Window_get_accHelpTopic ( IAccessible iface,
BSTR pszHelpFile,
VARIANT  varID,
LONG pidTopic 
)
static

Definition at line 191 of file window.c.

193{
194 Window *This = impl_from_Window(iface);
195 FIXME("(%p)->(%p %s %p)\n", This, pszHelpFile, debugstr_variant(&varID), pidTopic);
196 return E_NOTIMPL;
197}

◆ Window_get_accKeyboardShortcut()

static HRESULT WINAPI Window_get_accKeyboardShortcut ( IAccessible iface,
VARIANT  varID,
BSTR pszKeyboardShortcut 
)
static

Definition at line 199 of file window.c.

201{
202 Window *This = impl_from_Window(iface);
203 FIXME("(%p)->(%s %p)\n", This, debugstr_variant(&varID), pszKeyboardShortcut);
204 return E_NOTIMPL;
205}

◆ Window_get_accName()

static HRESULT WINAPI Window_get_accName ( IAccessible iface,
VARIANT  varID,
BSTR pszName 
)
static

Definition at line 148 of file window.c.

149{
150 Window *This = impl_from_Window(iface);
151 FIXME("(%p)->(%s %p)\n", This, debugstr_variant(&varID), pszName);
152 return E_NOTIMPL;
153}

◆ Window_get_accParent()

static HRESULT WINAPI Window_get_accParent ( IAccessible iface,
IDispatch **  ppdispParent 
)
static

Definition at line 126 of file window.c.

127{
128 Window *This = impl_from_Window(iface);
129 FIXME("(%p)->(%p)\n", This, ppdispParent);
130 return E_NOTIMPL;
131}

◆ Window_get_accRole()

static HRESULT WINAPI Window_get_accRole ( IAccessible iface,
VARIANT  varID,
VARIANT pvarRole 
)
static

Definition at line 170 of file window.c.

171{
172 Window *This = impl_from_Window(iface);
173 FIXME("(%p)->(%s %p)\n", This, debugstr_variant(&varID), pvarRole);
174 return E_NOTIMPL;
175}

◆ Window_get_accSelection()

static HRESULT WINAPI Window_get_accSelection ( IAccessible iface,
VARIANT pvarID 
)
static

Definition at line 214 of file window.c.

215{
216 Window *This = impl_from_Window(iface);
217 FIXME("(%p)->(%p)\n", This, pvarID);
218 return E_NOTIMPL;
219}

◆ Window_get_accState()

static HRESULT WINAPI Window_get_accState ( IAccessible iface,
VARIANT  varID,
VARIANT pvarState 
)
static

Definition at line 177 of file window.c.

178{
179 Window *This = impl_from_Window(iface);
180 FIXME("(%p)->(%s %p)\n", This, debugstr_variant(&varID), pvarState);
181 return E_NOTIMPL;
182}

◆ Window_get_accValue()

static HRESULT WINAPI Window_get_accValue ( IAccessible iface,
VARIANT  varID,
BSTR pszValue 
)
static

Definition at line 155 of file window.c.

156{
157 Window *This = impl_from_Window(iface);
158 FIXME("(%p)->(%s %p)\n", This, debugstr_variant(&varID), pszValue);
159 return E_NOTIMPL;
160}
_In_opt_ LPCSTR _In_opt_ LPCSTR pszValue
Definition: shlwapi.h:783

◆ Window_GetIDsOfNames()

static HRESULT WINAPI Window_GetIDsOfNames ( IAccessible iface,
REFIID  riid,
LPOLESTR *  rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 107 of file window.c.

109{
110 Window *This = impl_from_Window(iface);
111 FIXME("(%p)->(%s %p %u %lx %p)\n", This, debugstr_guid(riid),
112 rgszNames, cNames, lcid, rgDispId);
113 return E_NOTIMPL;
114}
LCID lcid
Definition: locale.c:5660
#define debugstr_guid
Definition: kernel32.h:35

◆ Window_GetTypeInfo()

static HRESULT WINAPI Window_GetTypeInfo ( IAccessible iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 99 of file window.c.

101{
102 Window *This = impl_from_Window(iface);
103 FIXME("(%p)->(%u %lx %p)\n", This, iTInfo, lcid, ppTInfo);
104 return E_NOTIMPL;
105}

◆ Window_GetTypeInfoCount()

static HRESULT WINAPI Window_GetTypeInfoCount ( IAccessible iface,
UINT pctinfo 
)
static

Definition at line 92 of file window.c.

93{
95 FIXME("(%p)->(%p)\n", This, pctinfo);
96 return E_NOTIMPL;
97}

◆ Window_Invoke()

static HRESULT WINAPI Window_Invoke ( IAccessible iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 116 of file window.c.

119{
120 Window *This = impl_from_Window(iface);
121 FIXME("(%p)->(%lx %s %lx %x %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
122 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
123 return E_NOTIMPL;
124}
WINBASEAPI _In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon_undoc.h:337

◆ Window_OleWindow_AddRef()

static ULONG WINAPI Window_OleWindow_AddRef ( IOleWindow iface)
static

Definition at line 351 of file window.c.

352{
354 return IAccessible_AddRef(&This->IAccessible_iface);
355}
static Window * impl_from_Window_OleWindow(IOleWindow *iface)
Definition: window.c:340

◆ Window_OleWindow_ContextSensitiveHelp()

static HRESULT WINAPI Window_OleWindow_ContextSensitiveHelp ( IOleWindow iface,
BOOL  fEnterMode 
)
static

Definition at line 373 of file window.c.

374{
376 FIXME("(%p)->(%x)\n", This, fEnterMode);
377 return E_NOTIMPL;
378}

◆ Window_OleWindow_GetWindow()

static HRESULT WINAPI Window_OleWindow_GetWindow ( IOleWindow iface,
HWND hwnd 
)
static

Definition at line 363 of file window.c.

364{
366
367 TRACE("(%p)->(%p)\n", This, hwnd);
368
369 *hwnd = This->hwnd;
370 return S_OK;
371}

◆ Window_OleWindow_QueryInterface()

static HRESULT WINAPI Window_OleWindow_QueryInterface ( IOleWindow iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 345 of file window.c.

346{
348 return IAccessible_QueryInterface(&This->IAccessible_iface, riid, ppv);
349}

◆ Window_OleWindow_Release()

static ULONG WINAPI Window_OleWindow_Release ( IOleWindow iface)
static

Definition at line 357 of file window.c.

358{
360 return IAccessible_Release(&This->IAccessible_iface);
361}

◆ Window_put_accName()

static HRESULT WINAPI Window_put_accName ( IAccessible iface,
VARIANT  varID,
BSTR  pszName 
)
static

Definition at line 295 of file window.c.

296{
297 Window *This = impl_from_Window(iface);
298 FIXME("(%p)->(%s %s)\n", This, debugstr_variant(&varID), debugstr_w(pszName));
299 return E_NOTIMPL;
300}
#define debugstr_w
Definition: kernel32.h:32

◆ Window_put_accValue()

static HRESULT WINAPI Window_put_accValue ( IAccessible iface,
VARIANT  varID,
BSTR  pszValue 
)
static

Definition at line 302 of file window.c.

303{
304 Window *This = impl_from_Window(iface);
305 FIXME("(%p)->(%s %s)\n", This, debugstr_variant(&varID), debugstr_w(pszValue));
306 return E_NOTIMPL;
307}

◆ Window_QueryInterface()

static HRESULT WINAPI Window_QueryInterface ( IAccessible iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 45 of file window.c.

46{
48
49 TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
50
51 if(IsEqualIID(riid, &IID_IAccessible) ||
54 *ppv = iface;
55 }else if(IsEqualIID(riid, &IID_IOleWindow)) {
56 *ppv = &This->IOleWindow_iface;
57 }else if(IsEqualIID(riid, &IID_IEnumVARIANT)) {
58 *ppv = &This->IEnumVARIANT_iface;
59 }else if(IsEqualIID(riid, &IID_IServiceProvider)) {
60 *ppv = &This->IServiceProvider_iface;
61 }else {
62 WARN("no interface: %s\n", debugstr_guid(riid));
63 *ppv = NULL;
64 return E_NOINTERFACE;
65 }
66
67 IAccessible_AddRef(iface);
68 return S_OK;
69}
#define WARN(fmt,...)
Definition: precomp.h:61
const GUID IID_IUnknown
#define NULL
Definition: types.h:112
const GUID IID_IOleWindow
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95
#define E_NOINTERFACE
Definition: winerror.h:3479

◆ Window_Release()

static ULONG WINAPI Window_Release ( IAccessible iface)
static

Definition at line 80 of file window.c.

81{
84
85 TRACE("(%p) ref = %lu\n", This, ref);
86
87 if(!ref)
89 return ref;
90}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define InterlockedDecrement
Definition: armddk.h:52

◆ Window_ServiceProvider_AddRef()

static ULONG WINAPI Window_ServiceProvider_AddRef ( IServiceProvider iface)
static

Definition at line 461 of file window.c.

462{
464 return IAccessible_AddRef(&This->IAccessible_iface);
465}
static Window * impl_from_Window_ServiceProvider(IServiceProvider *iface)
Definition: window.c:450

◆ Window_ServiceProvider_QueryInterface()

static HRESULT WINAPI Window_ServiceProvider_QueryInterface ( IServiceProvider iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 455 of file window.c.

456{
458 return IAccessible_QueryInterface(&This->IAccessible_iface, riid, ppv);
459}

◆ Window_ServiceProvider_QueryService()

static HRESULT WINAPI Window_ServiceProvider_QueryService ( IServiceProvider iface,
REFGUID  guid_service,
REFIID  riid,
void **  ppv 
)
static

Definition at line 473 of file window.c.

475{
477
478 TRACE("(%p)->(%s %s %p)\n", This, debugstr_guid(guid_service), debugstr_guid(riid), ppv);
479
480 *ppv = NULL;
481 if (IsEqualIID(guid_service, &IIS_IsOleaccProxy))
482 return IAccessible_QueryInterface(&This->IAccessible_iface, riid, ppv);
483
484 return E_INVALIDARG;
485}
#define E_INVALIDARG
Definition: ddrawi.h:101

◆ Window_ServiceProvider_Release()

static ULONG WINAPI Window_ServiceProvider_Release ( IServiceProvider iface)
static

Definition at line 467 of file window.c.

468{
470 return IAccessible_Release(&This->IAccessible_iface);
471}

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( oleacc  )

Variable Documentation

◆ classes

const struct win_class_data classes[]
static
Initial value:
= {
{WC_LISTBOXW, 0x10000, TRUE},
{L"#32768", 0x10001, TRUE},
{NULL}
}
#define TRUE
Definition: types.h:120
#define L(x)
Definition: resources.c:13
#define WC_LISTBOXW
Definition: commctrl.h:4716

Definition at line 494 of file window.c.

Referenced by create_window_object().

◆ WindowEnumVARIANTVtbl

const IEnumVARIANTVtbl WindowEnumVARIANTVtbl
static
Initial value:
= {
}
static HRESULT WINAPI Window_EnumVARIANT_QueryInterface(IEnumVARIANT *iface, REFIID riid, void **ppv)
Definition: window.c:393
static HRESULT WINAPI Window_EnumVARIANT_Skip(IEnumVARIANT *iface, ULONG celt)
Definition: window.c:419
static HRESULT WINAPI Window_EnumVARIANT_Next(IEnumVARIANT *iface, ULONG celt, VARIANT *rgVar, ULONG *pCeltFetched)
Definition: window.c:411
static ULONG WINAPI Window_EnumVARIANT_Release(IEnumVARIANT *iface)
Definition: window.c:405
static HRESULT WINAPI Window_EnumVARIANT_Clone(IEnumVARIANT *iface, IEnumVARIANT **ppEnum)
Definition: window.c:433
static ULONG WINAPI Window_EnumVARIANT_AddRef(IEnumVARIANT *iface)
Definition: window.c:399
static HRESULT WINAPI Window_EnumVARIANT_Reset(IEnumVARIANT *iface)
Definition: window.c:426

Definition at line 440 of file window.c.

Referenced by create_window_object().

◆ WindowOleWindowVtbl

const IOleWindowVtbl WindowOleWindowVtbl
static
Initial value:
= {
}
static HRESULT WINAPI Window_OleWindow_QueryInterface(IOleWindow *iface, REFIID riid, void **ppv)
Definition: window.c:345
static ULONG WINAPI Window_OleWindow_Release(IOleWindow *iface)
Definition: window.c:357
static HRESULT WINAPI Window_OleWindow_ContextSensitiveHelp(IOleWindow *iface, BOOL fEnterMode)
Definition: window.c:373
static HRESULT WINAPI Window_OleWindow_GetWindow(IOleWindow *iface, HWND *hwnd)
Definition: window.c:363
static ULONG WINAPI Window_OleWindow_AddRef(IOleWindow *iface)
Definition: window.c:351

Definition at line 380 of file window.c.

Referenced by create_window_object().

◆ WindowServiceProviderVtbl

const IServiceProviderVtbl WindowServiceProviderVtbl
static
Initial value:
= {
}
static ULONG WINAPI Window_ServiceProvider_AddRef(IServiceProvider *iface)
Definition: window.c:461
static ULONG WINAPI Window_ServiceProvider_Release(IServiceProvider *iface)
Definition: window.c:467
static HRESULT WINAPI Window_ServiceProvider_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppv)
Definition: window.c:455
static HRESULT WINAPI Window_ServiceProvider_QueryService(IServiceProvider *iface, REFGUID guid_service, REFIID riid, void **ppv)
Definition: window.c:473

Definition at line 487 of file window.c.

Referenced by create_window_object().

◆ WindowVtbl

const IAccessibleVtbl WindowVtbl
static
Initial value:
= {
}
static HRESULT WINAPI Window_get_accSelection(IAccessible *iface, VARIANT *pvarID)
Definition: window.c:214
static HRESULT WINAPI Window_QueryInterface(IAccessible *iface, REFIID riid, void **ppv)
Definition: window.c:45
static HRESULT WINAPI Window_put_accName(IAccessible *iface, VARIANT varID, BSTR pszName)
Definition: window.c:295
static HRESULT WINAPI Window_accSelect(IAccessible *iface, LONG flagsSelect, VARIANT varID)
Definition: window.c:229
static HRESULT WINAPI Window_accNavigate(IAccessible *iface, LONG navDir, VARIANT varStart, VARIANT *pvarEnd)
Definition: window.c:245
static HRESULT WINAPI Window_accHitTest(IAccessible *iface, LONG x, LONG y, VARIANT *v)
Definition: window.c:253
static ULONG WINAPI Window_AddRef(IAccessible *iface)
Definition: window.c:71
static HRESULT WINAPI Window_get_accDescription(IAccessible *iface, VARIANT varID, BSTR *pszDescription)
Definition: window.c:162
static HRESULT WINAPI Window_get_accValue(IAccessible *iface, VARIANT varID, BSTR *pszValue)
Definition: window.c:155
static HRESULT WINAPI Window_get_accKeyboardShortcut(IAccessible *iface, VARIANT varID, BSTR *pszKeyboardShortcut)
Definition: window.c:199
static HRESULT WINAPI Window_get_accChildCount(IAccessible *iface, LONG *pcountChildren)
Definition: window.c:133
static HRESULT WINAPI Window_get_accHelpTopic(IAccessible *iface, BSTR *pszHelpFile, VARIANT varID, LONG *pidTopic)
Definition: window.c:191
static HRESULT WINAPI Window_get_accHelp(IAccessible *iface, VARIANT varID, BSTR *pszHelp)
Definition: window.c:184
static HRESULT WINAPI Window_accDoDefaultAction(IAccessible *iface, VARIANT varID)
Definition: window.c:288
static HRESULT WINAPI Window_get_accRole(IAccessible *iface, VARIANT varID, VARIANT *pvarRole)
Definition: window.c:170
static HRESULT WINAPI Window_put_accValue(IAccessible *iface, VARIANT varID, BSTR pszValue)
Definition: window.c:302
static HRESULT WINAPI Window_get_accParent(IAccessible *iface, IDispatch **ppdispParent)
Definition: window.c:126
static HRESULT WINAPI Window_get_accName(IAccessible *iface, VARIANT varID, BSTR *pszName)
Definition: window.c:148
static HRESULT WINAPI Window_Invoke(IAccessible *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: window.c:116
static HRESULT WINAPI Window_get_accDefaultAction(IAccessible *iface, VARIANT varID, BSTR *pszDefaultAction)
Definition: window.c:221
static HRESULT WINAPI Window_GetIDsOfNames(IAccessible *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: window.c:107
static HRESULT WINAPI Window_get_accFocus(IAccessible *iface, VARIANT *pvarID)
Definition: window.c:207
static HRESULT WINAPI Window_get_accChild(IAccessible *iface, VARIANT varChildID, IDispatch **ppdispChild)
Definition: window.c:140
static HRESULT WINAPI Window_accLocation(IAccessible *iface, LONG *pxLeft, LONG *pyTop, LONG *pcxWidth, LONG *pcyHeight, VARIANT varID)
Definition: window.c:236
static ULONG WINAPI Window_Release(IAccessible *iface)
Definition: window.c:80
static HRESULT WINAPI Window_GetTypeInfoCount(IAccessible *iface, UINT *pctinfo)
Definition: window.c:92
static HRESULT WINAPI Window_GetTypeInfo(IAccessible *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: window.c:99
static HRESULT WINAPI Window_get_accState(IAccessible *iface, VARIANT varID, VARIANT *pvarState)
Definition: window.c:177

Definition at line 309 of file window.c.

Referenced by create_window_object().