ReactOS  0.4.15-dev-1152-g6c94e4f
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 }
Definition: compat.h:2046
#define V_I4(A)
Definition: oleauto.h:247
#define FIXME(fmt,...)
Definition: debug.h:111
#define V_VT(A)
Definition: oleauto.h:211
const GLdouble * v
Definition: gl.h:2040

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  ,
const IID ,
void **   
)

Definition at line 625 of file client.c.

626 {
627  Client *client;
628  HRESULT hres;
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
Definition: client.c:28
BOOL WINAPI IsWindow(_In_opt_ HWND)
static const IOleWindowVtbl ClientOleWindowVtbl
Definition: client.c:495
#define E_FAIL
Definition: ddrawi.h:102
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
HRESULT hres
Definition: protocol.c:465
static const IEnumVARIANTVtbl ClientEnumVARIANTVtbl
Definition: client.c:615
LONG HRESULT
Definition: typedefs.h:79
static FILE * client
Definition: client.c:41
static const IAccessibleVtbl ClientVtbl
Definition: client.c:424

Referenced by CreateStdAccessibleObject().

◆ create_window_object()

HRESULT create_window_object ( HWND  ,
const IID ,
void **   
)

Definition at line 414 of file window.c.

415 {
416  Window *window;
417  HRESULT hres;
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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
static const IOleWindowVtbl WindowOleWindowVtbl
Definition: window.c:344
#define E_FAIL
Definition: ddrawi.h:102
Definition: window.c:28
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const IEnumVARIANTVtbl WindowEnumVARIANTVtbl
Definition: window.c:404
static const IAccessibleVtbl WindowVtbl
Definition: window.c:276
BOOL WINAPI IsWindow(HWND hWnd)
Definition: window.c:1547
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:79
static IHTMLWindow2 * window
Definition: events.c:77

Referenced by CreateStdAccessibleObject().

◆ get_accpropservices_factory()

HRESULT get_accpropservices_factory ( REFIID  ,
void **   
)

Definition at line 247 of file propservice.c.

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

Referenced by DllGetClassObject().