Commit 8d8ff37c authored by Alexandre Julliard's avatar Alexandre Julliard

oleaut32: Use a dlldata.c file instead of maintaining the data manually.

parent 1bd26cca
EXTRADEFS = -D_OLEAUT32_ -DCOM_NO_WINDOWS_H
TOPSRCDIR = @top_srcdir@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../.. TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
...@@ -7,6 +6,8 @@ MODULE = oleaut32.dll ...@@ -7,6 +6,8 @@ MODULE = oleaut32.dll
IMPORTLIB = oleaut32 IMPORTLIB = oleaut32
IMPORTS = uuid ole32 rpcrt4 user32 gdi32 advapi32 kernel32 ntdll IMPORTS = uuid ole32 rpcrt4 user32 gdi32 advapi32 kernel32 ntdll
DELAYIMPORTS = comctl32 urlmon DELAYIMPORTS = comctl32 urlmon
EXTRADEFS = -D_OLEAUT32_ -DCOM_NO_WINDOWS_H \
-DENTRY_PREFIX=OLEAUTPS_ -DPROXY_CLSID=CLSID_PSDispatch -DPROXY_DELEGATION
C_SRCS = \ C_SRCS = \
connpt.c \ connpt.c \
...@@ -42,6 +43,8 @@ IDL_P_SRCS = \ ...@@ -42,6 +43,8 @@ IDL_P_SRCS = \
oleaut32_oaidl.idl \ oleaut32_oaidl.idl \
oleaut32_ocidl.idl oleaut32_ocidl.idl
EXTRA_OBJS = dlldata.o
@MAKE_DLL_RULES@ @MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend @DEPENDENCIES@ # everything below this line is overwritten by make depend
...@@ -696,7 +696,7 @@ HRESULT WINAPI OleTranslateColor( ...@@ -696,7 +696,7 @@ HRESULT WINAPI OleTranslateColor(
return S_OK; return S_OK;
} }
extern HRESULT OLEAUTPS_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv); extern HRESULT WINAPI OLEAUTPS_DllGetClassObject(REFCLSID, REFIID, LPVOID *) DECLSPEC_HIDDEN;
extern void _get_STDFONT_CF(LPVOID *); extern void _get_STDFONT_CF(LPVOID *);
extern void _get_STDPIC_CF(LPVOID *); extern void _get_STDPIC_CF(LPVOID *);
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define PROXY_DELEGATION
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
...@@ -35,7 +34,6 @@ ...@@ -35,7 +34,6 @@
#include "ole2.h" #include "ole2.h"
#include "oleauto.h" #include "oleauto.h"
#include "rpcproxy.h"
#include "typelib.h" #include "typelib.h"
#include "ocidl.h" #include "ocidl.h"
#include "wine/debug.h" #include "wine/debug.h"
...@@ -47,26 +45,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole); ...@@ -47,26 +45,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole);
#define ALIGN_LENGTH(_Len, _Align) _Len = ALIGNED_LENGTH(_Len, _Align) #define ALIGN_LENGTH(_Len, _Align) _Len = ALIGNED_LENGTH(_Len, _Align)
#define ALIGN_POINTER(_Ptr, _Align) _Ptr = ALIGNED_POINTER(_Ptr, _Align) #define ALIGN_POINTER(_Ptr, _Align) _Ptr = ALIGNED_POINTER(_Ptr, _Align)
static CStdPSFactoryBuffer PSFactoryBuffer;
CSTDSTUBBUFFERRELEASE(&PSFactoryBuffer)
CSTDSTUBBUFFER2RELEASE(&PSFactoryBuffer)
extern const ExtendedProxyFileInfo oleaut32_oaidl_ProxyFileInfo;
extern const ExtendedProxyFileInfo oleaut32_ocidl_ProxyFileInfo;
static const ProxyFileInfo *OLEAUT32_ProxyFileList[] = {
&oleaut32_oaidl_ProxyFileInfo,
&oleaut32_ocidl_ProxyFileInfo,
NULL
};
HRESULT OLEAUTPS_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
return NdrDllGetClassObject(rclsid, riid, ppv, OLEAUT32_ProxyFileList,
&CLSID_PSDispatch, &PSFactoryBuffer);
}
static void dump_user_flags(const ULONG *pFlags) static void dump_user_flags(const ULONG *pFlags)
{ {
if (HIWORD(*pFlags) == NDR_LOCAL_DATA_REPRESENTATION) if (HIWORD(*pFlags) == NDR_LOCAL_DATA_REPRESENTATION)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment