ReactOS 0.4.15-dev-7942-gd23573b
oleacc_private.h File Reference
#include "oleacc_classes.h"
Include dependency graph for oleacc_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HRESULT create_client_object (HWND, const IID *, void **) DECLSPEC_HIDDEN
 
HRESULT create_window_object (HWND, const IID *, void **) DECLSPEC_HIDDEN
 
HRESULT get_accpropservices_factory (REFIID, void **) DECLSPEC_HIDDEN
 
int convert_child_id (VARIANT *v) DECLSPEC_HIDDEN
 

Function Documentation

◆ convert_child_id()

int convert_child_id ( VARIANT v)

Definition at line 100 of file main.c.

101{
102 switch(V_VT(v)) {
103 case VT_I4:
104 return V_I4(v);
105 default:
106 FIXME("unhandled child ID variant type: %d\n", V_VT(v));
107 return -1;
108 }
109}
#define FIXME(fmt,...)
Definition: debug.h:111
@ VT_I4
Definition: compat.h:2298
const GLdouble * v
Definition: gl.h:2040
#define V_VT(A)
Definition: oleauto.h:211
#define V_I4(A)
Definition: oleauto.h:247

Referenced by Client_accLocation(), Client_get_accDefaultAction(), Client_get_accDescription(), Client_get_accHelp(), Client_get_accKeyboardShortcut(), Client_get_accName(), Client_get_accRole(), Client_get_accState(), and Client_get_accValue().

◆ create_client_object()

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

Definition at line 625 of file client.c.

626{
627 Client *client;
629
630 if(!IsWindow(hwnd))
631 return E_FAIL;
632
633 client = heap_alloc_zero(sizeof(Client));
634 if(!client)
635 return E_OUTOFMEMORY;
636
637 client->IAccessible_iface.lpVtbl = &ClientVtbl;
638 client->IOleWindow_iface.lpVtbl = &ClientOleWindowVtbl;
639 client->IEnumVARIANT_iface.lpVtbl = &ClientEnumVARIANTVtbl;
640 client->ref = 1;
641 client->hwnd = hwnd;
642 client->enum_pos = 0;
643
644 hres = IAccessible_QueryInterface(&client->IAccessible_iface, iid, obj);
645 IAccessible_Release(&client->IAccessible_iface);
646 return hres;
647}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_FAIL
Definition: ddrawi.h:102
static const IAccessibleVtbl ClientVtbl
Definition: client.c:424
static const IOleWindowVtbl ClientOleWindowVtbl
Definition: client.c:495
static const IEnumVARIANTVtbl ClientEnumVARIANTVtbl
Definition: client.c:615
HRESULT hres
Definition: protocol.c:465
static FILE * client
Definition: client.c:41
Definition: client.c:28
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
BOOL WINAPI IsWindow(_In_opt_ HWND)

Referenced by CreateStdAccessibleObject().

◆ create_window_object()

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

Definition at line 414 of file window.c.

415{
416 Window *window;
418
419 if(!IsWindow(hwnd))
420 return E_FAIL;
421
422 window = heap_alloc_zero(sizeof(Window));
423 if(!window)
424 return E_OUTOFMEMORY;
425
426 window->IAccessible_iface.lpVtbl = &WindowVtbl;
427 window->IOleWindow_iface.lpVtbl = &WindowOleWindowVtbl;
428 window->IEnumVARIANT_iface.lpVtbl = &WindowEnumVARIANTVtbl;
429 window->ref = 1;
430
431 hres = IAccessible_QueryInterface(&window->IAccessible_iface, iid, obj);
432 IAccessible_Release(&window->IAccessible_iface);
433 return hres;
434}
static const IOleWindowVtbl WindowOleWindowVtbl
Definition: window.c:344
static const IAccessibleVtbl WindowVtbl
Definition: window.c:276
static const IEnumVARIANTVtbl WindowEnumVARIANTVtbl
Definition: window.c:404
static IHTMLWindow2 * window
Definition: events.c:77
Definition: window.c:28

Referenced by CreateStdAccessibleObject().

◆ get_accpropservices_factory()

HRESULT get_accpropservices_factory ( REFIID  riid,
void **  ppv 
)

Definition at line 247 of file propservice.c.

248{
249 return IClassFactory_QueryInterface(&CAccPropServicesFactory, riid, ppv);
250}
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
static IClassFactory CAccPropServicesFactory
Definition: propservice.c:245

Referenced by DllGetClassObject().