mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 00:07:16 +00:00
oleacc: Added proxies for oleacc.idl.
This commit is contained in:
parent
7839aa22c3
commit
40a311c821
|
@ -1,6 +1,6 @@
|
||||||
MODULE = oleacc.dll
|
MODULE = oleacc.dll
|
||||||
IMPORTLIB = oleacc
|
IMPORTLIB = oleacc
|
||||||
IMPORTS = uuid oleaut32 ole32 user32
|
IMPORTS = uuid oleaut32 ole32 user32 rpcrt4
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
client.c \
|
client.c \
|
||||||
|
@ -11,3 +11,5 @@ C_SRCS = \
|
||||||
IDL_SRCS = oleacc_classes.idl
|
IDL_SRCS = oleacc_classes.idl
|
||||||
|
|
||||||
RC_SRCS = oleacc.rc
|
RC_SRCS = oleacc.rc
|
||||||
|
|
||||||
|
dlldata_EXTRADEFS = -DENTRY_PREFIX=OLEACC_ -DPROXY_DELEGATION -DWINE_REGISTER_DLL
|
||||||
|
|
|
@ -49,6 +49,11 @@ static const WCHAR richedit20wW[] = {'R','i','c','h','E','d','i','t','2','0','W'
|
||||||
|
|
||||||
typedef HRESULT (WINAPI *accessible_create)(HWND, const IID*, void**);
|
typedef HRESULT (WINAPI *accessible_create)(HWND, const IID*, void**);
|
||||||
|
|
||||||
|
extern HRESULT WINAPI OLEACC_DllGetClassObject(REFCLSID, REFIID, void**) DECLSPEC_HIDDEN;
|
||||||
|
extern BOOL WINAPI OLEACC_DllMain(HINSTANCE, DWORD, void*) DECLSPEC_HIDDEN;
|
||||||
|
extern HRESULT WINAPI OLEACC_DllRegisterServer(void) DECLSPEC_HIDDEN;
|
||||||
|
extern HRESULT WINAPI OLEACC_DllUnregisterServer(void) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
const WCHAR *name;
|
const WCHAR *name;
|
||||||
DWORD idx;
|
DWORD idx;
|
||||||
|
@ -406,19 +411,34 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
|
||||||
DisableThreadLibraryCalls(hinstDLL);
|
DisableThreadLibraryCalls(hinstDLL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return TRUE;
|
|
||||||
|
return OLEACC_DllMain(hinstDLL, fdwReason, lpvReserved);
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI DllRegisterServer(void)
|
HRESULT WINAPI DllRegisterServer(void)
|
||||||
{
|
{
|
||||||
TRACE("()\n");
|
return OLEACC_DllRegisterServer();
|
||||||
return __wine_register_resources(oleacc_handle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI DllUnregisterServer(void)
|
HRESULT WINAPI DllUnregisterServer(void)
|
||||||
{
|
{
|
||||||
TRACE("()\n");
|
return OLEACC_DllUnregisterServer();
|
||||||
return __wine_unregister_resources(oleacc_handle);
|
}
|
||||||
|
|
||||||
|
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, void **ppv)
|
||||||
|
{
|
||||||
|
if(IsEqualGUID(&CLSID_CAccPropServices, rclsid)) {
|
||||||
|
TRACE("(CLSID_CAccPropServices %s %p)\n", debugstr_guid(iid), ppv);
|
||||||
|
return get_accpropservices_factory(iid, ppv);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(IsEqualGUID(&CLSID_PSFactoryBuffer, rclsid)) {
|
||||||
|
TRACE("(CLSID_PSFactoryBuffer %s %p)\n", debugstr_guid(iid), ppv);
|
||||||
|
return OLEACC_DllGetClassObject(rclsid, iid, ppv);
|
||||||
|
}
|
||||||
|
|
||||||
|
FIXME("%s %s %p: stub\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
|
||||||
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WINAPI GetOleaccVersionInfo(DWORD* pVersion, DWORD* pBuild)
|
void WINAPI GetOleaccVersionInfo(DWORD* pVersion, DWORD* pBuild)
|
||||||
|
|
|
@ -17,5 +17,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma makedep regtypelib
|
#pragma makedep regtypelib
|
||||||
|
#pragma makedep proxy
|
||||||
|
#pragma makedep register
|
||||||
|
|
||||||
#include "oleacc.idl"
|
#include "oleacc.idl"
|
||||||
|
|
||||||
|
[
|
||||||
|
threading(both),
|
||||||
|
uuid(03022430-abc4-11d0-bde2-00aa001a1953) /* IAccessibleHandler */
|
||||||
|
]
|
||||||
|
coclass PSFactoryBuffer { interface IFactoryBuffer; }
|
||||||
|
|
|
@ -16,10 +16,11 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <oleacc.h>
|
#include "oleacc_classes.h"
|
||||||
|
|
||||||
HRESULT create_client_object(HWND, const IID*, void**) DECLSPEC_HIDDEN;
|
HRESULT create_client_object(HWND, const IID*, void**) DECLSPEC_HIDDEN;
|
||||||
HRESULT create_window_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;
|
int convert_child_id(VARIANT *v) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "oleacc.h"
|
|
||||||
#include "oleacc_private.h"
|
#include "oleacc_private.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
@ -245,13 +244,7 @@ static const IClassFactoryVtbl CAccPropServicesFactoryVtbl = {
|
||||||
|
|
||||||
static IClassFactory CAccPropServicesFactory = { &CAccPropServicesFactoryVtbl };
|
static IClassFactory CAccPropServicesFactory = { &CAccPropServicesFactoryVtbl };
|
||||||
|
|
||||||
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, void **ppv)
|
HRESULT get_accpropservices_factory(REFIID riid, void **ppv)
|
||||||
{
|
{
|
||||||
if(IsEqualGUID(&CLSID_CAccPropServices, rclsid)) {
|
return IClassFactory_QueryInterface(&CAccPropServicesFactory, riid, ppv);
|
||||||
TRACE("(CLSID_CAccPropServices %s %p)\n", debugstr_guid(iid), ppv);
|
|
||||||
return IClassFactory_QueryInterface(&CAccPropServicesFactory, iid, ppv);
|
|
||||||
}
|
|
||||||
|
|
||||||
FIXME("%s %s %p: stub\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
|
|
||||||
return E_NOTIMPL;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue