From: Steven Edwards Date: Thu, 26 Feb 2004 02:01:13 +0000 (+0000) Subject: Imported Olepro32 from WINE CVS-20040225....... X-Git-Tag: backups/videoprt_pnp_14032004@12472~273 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=cf035ffc0372943a0cb79cc0641e05d4cae0d55d Imported Olepro32 from WINE CVS-20040225....... ...I really want to get MFC working. svn path=/trunk/; revision=8395 --- diff --git a/reactos/lib/olepro32/.cvsignore b/reactos/lib/olepro32/.cvsignore new file mode 100644 index 00000000000..9edd5cbe53b --- /dev/null +++ b/reactos/lib/olepro32/.cvsignore @@ -0,0 +1,20 @@ +*.coff +*.dll +*.d +*.a +*.o +*.sym +*.map +*.tmp +Makefile.ros +idb_hist_large.bmp +idb_hist_small.bmp +idb_std_small.bmp +idb_std_large.bmp +idb_view_large.bmp +idb_view_small.bmp +idc_divider.cur +idc_divideropen.cur +idi_dragarrow.ico +idt_check.bmp +comctl32.spec.def diff --git a/reactos/lib/olepro32/Makefile b/reactos/lib/olepro32/Makefile new file mode 100644 index 00000000000..5dbab8ecb97 --- /dev/null +++ b/reactos/lib/olepro32/Makefile @@ -0,0 +1,9 @@ +# $Id: Makefile,v 1.1 2004/02/26 02:01:13 sedwards Exp $ + +PATH_TO_TOP = ../.. + +TARGET_TYPE = winedll + +include $(PATH_TO_TOP)/rules.mak + +include $(TOOLS_PATH)/helper.mk diff --git a/reactos/lib/olepro32/Makefile.in b/reactos/lib/olepro32/Makefile.in new file mode 100644 index 00000000000..280fd841b05 --- /dev/null +++ b/reactos/lib/olepro32/Makefile.in @@ -0,0 +1,12 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = olepro32.dll +IMPORTS = oleaut32 + +C_SRCS = olepro32stubs.c + +@MAKE_DLL_RULES@ + +### Dependencies: diff --git a/reactos/lib/olepro32/Makefile.ros-template b/reactos/lib/olepro32/Makefile.ros-template new file mode 100644 index 00000000000..833e09a6af2 --- /dev/null +++ b/reactos/lib/olepro32/Makefile.ros-template @@ -0,0 +1,21 @@ +# $Id: Makefile.ros-template,v 1.1 2004/02/26 02:01:13 sedwards Exp $ + +TARGET_NAME = olepro32 + +TARGET_OBJECTS = @C_SRCS@ + +TARGET_CFLAGS = @EXTRADEFS@ + +TARGET_SDKLIBS = @IMPORTS@ libwine.a wine_uuid.a ntdll.a oleaut32.a + +TARGET_BASE = 0x77a50000 + +TARGET_RC_SRCS = @RC_SRCS@ +TARGET_RC_BINSRC = @RC_BINSRC@ +TARGET_RC_BINARIES = @RC_BINARIES@ + +default: all + +DEP_OBJECTS = $(TARGET_OBJECTS) + +include $(TOOLS_PATH)/depend.mk diff --git a/reactos/lib/olepro32/README b/reactos/lib/olepro32/README new file mode 100644 index 00000000000..1c505f2781e --- /dev/null +++ b/reactos/lib/olepro32/README @@ -0,0 +1,9 @@ +29Nov99 +Sean Langley + +This library (OLEPRO32.DLL) is basically a sub-set of what is in OLEAUT32.DLL. +The main difference under Win32 is that OLEPRO32.DLL can be used +as a type library. There are two functions in this DLL which are already +implemented in Wine. They are OleCreateFontIndirect, and OleTranslateColor. +The spec file for both of these functions points to the functions in the +OLEAUT32.DLL. diff --git a/reactos/lib/olepro32/olepro32.rc b/reactos/lib/olepro32/olepro32.rc new file mode 100644 index 00000000000..77792217952 --- /dev/null +++ b/reactos/lib/olepro32/olepro32.rc @@ -0,0 +1,28 @@ +/* Language neutral resources. + * + * Copyright 2003 Stefan Leichter + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define WINE_FILEDESCRIPTION_STR "Wine Cabinet File API" +#define WINE_FILENAME_STR "cabinet.dll" +#define WINE_FILEVERSION 5,0,2147,1 +#define WINE_FILEVERSION_STR "5.0.2147.1" + +#define WINE_PRODUCTVERSION 5,0,2147,1 +#define WINE_PRODUCTVERSION_STR "5.0" + +#include "wine/wine_common_ver.rc" diff --git a/reactos/lib/olepro32/olepro32.spec b/reactos/lib/olepro32/olepro32.spec new file mode 100644 index 00000000000..240c283c936 --- /dev/null +++ b/reactos/lib/olepro32/olepro32.spec @@ -0,0 +1,11 @@ +248 stdcall OleIconToCursor(long long) oleaut32.OleIconToCursor +249 stdcall OleCreatePropertyFrameIndirect(ptr) oleaut32.OleCreatePropertyFrameIndirect +250 stdcall OleCreatePropertyFrame(ptr long long ptr long ptr long ptr ptr long ptr) oleaut32.OleCreatePropertyFrame +251 stdcall OleLoadPicture(ptr long long ptr ptr) oleaut32.OleLoadPicture +252 stdcall OleCreatePictureIndirect(ptr ptr long ptr) oleaut32.OleCreatePictureIndirect +253 stdcall OleCreateFontIndirect(ptr ptr ptr) oleaut32.OleCreateFontIndirect +254 stdcall OleTranslateColor(long long long) oleaut32.OleTranslateColor +@ stdcall -private DllCanUnloadNow() OLEPRO32_DllCanUnloadNow +@ stdcall -private DllGetClassObject( ptr ptr ptr ) OLEPRO32_DllGetClassObject +@ stdcall -private DllRegisterServer() OLEPRO32_DllRegisterServer +@ stdcall -private DllUnregisterServer() OLEPRO32_DllUnregisterServer diff --git a/reactos/lib/olepro32/olepro32stubs.c b/reactos/lib/olepro32/olepro32stubs.c new file mode 100644 index 00000000000..762839bc5d8 --- /dev/null +++ b/reactos/lib/olepro32/olepro32stubs.c @@ -0,0 +1,68 @@ +/* + * OlePro32 Stubs + * + * Copyright 1999 Corel Corporation + * + * Sean Langley + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define COM_NO_WINDOWS_H +#include + +#include "wine/debug.h" +#include "windef.h" +#include "winbase.h" +#include "winuser.h" +#include "ole2.h" + +WINE_DEFAULT_DEBUG_CHANNEL(ole); + +/*********************************************************************** + * DllUnregisterServer (OLEPRO32.258) + */ +HRESULT WINAPI OLEPRO32_DllUnregisterServer() +{ + FIXME("not implemented (olepro32.dll) \n"); + return S_OK; +} + +/*********************************************************************** + * DllRegisterServer (OLEPRO32.257) + */ +HRESULT WINAPI OLEPRO32_DllRegisterServer() +{ + FIXME("not implemented (olepro32.dll) \n"); + return S_OK; +} + +/*********************************************************************** + * DllCanUnloadNow (OLEPRO32.255) + */ +HRESULT WINAPI OLEPRO32_DllCanUnloadNow( ) +{ + FIXME("not implemented (olepro32.dll) \n"); + return S_OK; +} + +/*********************************************************************** + * DllGetClassObject (OLEPRO32.256) + */ +HRESULT WINAPI OLEPRO32_DllGetClassObject( REFCLSID rclsid, REFIID riid, LPVOID* ppv ) +{ + FIXME("not implemented (olepro32.dll) \n"); + return S_OK; +}