Stub out just enough of wininet.dll to make the AbiWord installer happy
authorGé van Geldorp <ge@gse.nl>
Sun, 1 Feb 2004 21:33:56 +0000 (21:33 +0000)
committerGé van Geldorp <ge@gse.nl>
Sun, 1 Feb 2004 21:33:56 +0000 (21:33 +0000)
svn path=/trunk/; revision=7981

reactos/lib/wininet/.cvsignore [new file with mode: 0644]
reactos/lib/wininet/Makefile [new file with mode: 0644]
reactos/lib/wininet/README.txt [new file with mode: 0644]
reactos/lib/wininet/stubs.c [new file with mode: 0644]
reactos/lib/wininet/wininet.def [new file with mode: 0644]
reactos/lib/wininet/wininet.edf [new file with mode: 0644]

diff --git a/reactos/lib/wininet/.cvsignore b/reactos/lib/wininet/.cvsignore
new file mode 100644 (file)
index 0000000..b3094ca
--- /dev/null
@@ -0,0 +1,10 @@
+temp.exp
+*.a
+*.o
+*.bin
+*.dll
+*.lib
+*.coff
+*.sym
+*.tmp
+*.map
diff --git a/reactos/lib/wininet/Makefile b/reactos/lib/wininet/Makefile
new file mode 100644 (file)
index 0000000..09155a7
--- /dev/null
@@ -0,0 +1,26 @@
+# $Id: Makefile,v 1.1 2004/02/01 21:33:56 gvg Exp $
+
+PATH_TO_TOP = ../..
+
+TARGET_TYPE = dynlink
+
+TARGET_NAME = wininet
+
+TARGET_BASE = 0x70200000
+
+# require os code to explicitly request A/W version of structs/functions
+TARGET_CFLAGS += -Wall -Werror
+
+TARGET_SDKLIBS = kernel32.a ntdll.a
+
+TARGET_OBJECTS = stubs.o
+
+TARGET_NORC = yes
+
+DEP_OBJECTS = $(TARGET_OBJECTS)
+
+include $(PATH_TO_TOP)/rules.mak
+
+include $(TOOLS_PATH)/helper.mk
+
+include $(TOOLS_PATH)/depend.mk
diff --git a/reactos/lib/wininet/README.txt b/reactos/lib/wininet/README.txt
new file mode 100644 (file)
index 0000000..e191d23
--- /dev/null
@@ -0,0 +1,4 @@
+$Id: README.txt,v 1.1 2004/02/01 21:33:56 gvg Exp $
+
+This only contains enough stubs at the moment to satisfy the AbiWord installer.
+Please feel free to dump this and replace with something better.
\ No newline at end of file
diff --git a/reactos/lib/wininet/stubs.c b/reactos/lib/wininet/stubs.c
new file mode 100644 (file)
index 0000000..1100aaa
--- /dev/null
@@ -0,0 +1,51 @@
+#include <windows.h>
+#include <wininet.h>
+
+#define NDEBUG
+#include <debug.h>
+
+BOOL WINAPI
+DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+  return TRUE;
+}
+
+BOOL WINAPI
+InternetAutodial(DWORD Flags, DWORD /* FIXME: should be HWND */ Parent)
+{
+  DPRINT1("InternetAutodial not implemented\n");
+
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+
+  return FALSE;
+}
+
+DWORD WINAPI
+InternetAttemptConnect(DWORD Reserved)
+{
+  DPRINT1("InternetAttemptConnect not implemented\n");
+
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+
+  return FALSE;
+}
+
+BOOL WINAPI
+InternetGetConnectedState(LPDWORD Flags, DWORD Reserved)
+{
+  DPRINT1("InternetGetConnectedState not implemented\n");
+
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+
+  return FALSE;
+}
+
+BOOL WINAPI
+InternetAutodialHangup(DWORD Reserved)
+{
+  DPRINT1("InternetAutodialHangup not implemented\n");
+
+  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+
+  return FALSE;
+}
diff --git a/reactos/lib/wininet/wininet.def b/reactos/lib/wininet/wininet.def
new file mode 100644 (file)
index 0000000..aefc3db
--- /dev/null
@@ -0,0 +1,7 @@
+; $Id: wininet.def,v 1.1 2004/02/01 21:33:56 gvg Exp $
+LIBRARY WININET.DLL
+EXPORTS
+InternetAutodial@8
+InternetAttemptConnect@4
+InternetGetConnectedState@8
+InternetAutodialHangup@4
diff --git a/reactos/lib/wininet/wininet.edf b/reactos/lib/wininet/wininet.edf
new file mode 100644 (file)
index 0000000..f7e4c49
--- /dev/null
@@ -0,0 +1,7 @@
+; $Id: wininet.edf,v 1.1 2004/02/01 21:33:56 gvg Exp $
+LIBRARY WININET.DLL
+EXPORTS
+InternetAutodial=InternetAutodial@8
+InternetAttemptConnect=InternetAttemptConnect@4
+InternetGetConnectedState=InternetGetConnectedState@8
+InternetAutodialHangup=InternetAutodialHangup@4