oleaut32: Use a dlldata.c file instead of maintaining the data manually.
This commit is contained in:
parent
1bd26cca94
commit
8d8ff37ca3
|
@ -1,4 +1,3 @@
|
||||||
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
|
||||||
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 = \
|
||||||
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(
|
||||||
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 @@
|
||||||
#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 @@
|
||||||
|
|
||||||
#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);
|
||||||
#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)
|
||||||
|
|
Loading…
Reference in New Issue