Imported Olepro32 from WINE CVS-20040225.......
authorSteven Edwards <winehacker@gmail.com>
Thu, 26 Feb 2004 02:01:13 +0000 (02:01 +0000)
committerSteven Edwards <winehacker@gmail.com>
Thu, 26 Feb 2004 02:01:13 +0000 (02:01 +0000)
...I really want to get MFC working.

svn path=/trunk/; revision=8395

reactos/lib/olepro32/.cvsignore [new file with mode: 0644]
reactos/lib/olepro32/Makefile [new file with mode: 0644]
reactos/lib/olepro32/Makefile.in [new file with mode: 0644]
reactos/lib/olepro32/Makefile.ros-template [new file with mode: 0644]
reactos/lib/olepro32/README [new file with mode: 0644]
reactos/lib/olepro32/olepro32.rc [new file with mode: 0644]
reactos/lib/olepro32/olepro32.spec [new file with mode: 0644]
reactos/lib/olepro32/olepro32stubs.c [new file with mode: 0644]

diff --git a/reactos/lib/olepro32/.cvsignore b/reactos/lib/olepro32/.cvsignore
new file mode 100644 (file)
index 0000000..9edd5cb
--- /dev/null
@@ -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 (file)
index 0000000..5dbab8e
--- /dev/null
@@ -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 (file)
index 0000000..280fd84
--- /dev/null
@@ -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 (file)
index 0000000..833e09a
--- /dev/null
@@ -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 (file)
index 0000000..1c505f2
--- /dev/null
@@ -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 (file)
index 0000000..7779221
--- /dev/null
@@ -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 (file)
index 0000000..240c283
--- /dev/null
@@ -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 (file)
index 0000000..762839b
--- /dev/null
@@ -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 <stdarg.h>
+
+#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;
+}