summaryrefslogtreecommitdiffstats
path: root/private/nw/nw16/drv/nwinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'private/nw/nw16/drv/nwinit.c')
-rw-r--r--private/nw/nw16/drv/nwinit.c81
1 files changed, 81 insertions, 0 deletions
diff --git a/private/nw/nw16/drv/nwinit.c b/private/nw/nw16/drv/nwinit.c
new file mode 100644
index 000000000..c61a4fb40
--- /dev/null
+++ b/private/nw/nw16/drv/nwinit.c
@@ -0,0 +1,81 @@
+/*****************************************************************/
+/** Microsoft Windows 4.0 **/
+/** Copyright (C) Microsoft Corp., 1992-1993 **/
+/*****************************************************************/
+
+/* INIT.C -- General code for MS/Netware network driver emulator.
+ *
+ * History:
+ * 09/22/93 vlads Created
+ *
+ */
+
+#include "netware.h"
+
+#define Reference(x) ((void)(x))
+
+extern BOOL far pascal GetLowRedirInfo(void);
+
+int FAR PASCAL LibMain(
+ HANDLE hInst,
+ WORD wDataSeg,
+ WORD wcbHeapSize,
+ LPSTR lpstrCmdLine)
+{
+
+ //
+ // get shared data segment address. Fail initialization if an error is
+ // returned
+ //
+
+ if (!GetLowRedirInfo()) {
+ return 0;
+ }
+
+ //
+ // return success
+ //
+
+ return 1;
+}
+
+/* WEP
+ * Windows Exit Procedure
+ */
+
+int FAR PASCAL _loadds WEP(int nParameter)
+{
+ Reference(nParameter);
+ return 1;
+}
+
+
+WINAPI PNETWAREREQUEST(LPVOID x)
+{
+ return(1);
+}
+
+//
+// removed because nwcalls makes use of this function; removing it causes
+// NWCALLS to use real INT 21
+//
+
+//WINAPI DOSREQUESTER(LPVOID x)
+//{
+// return(1);
+//}
+
+UINT WINAPI WNetAddConnection(LPSTR p1, LPSTR p2, LPSTR p3)
+{
+ return(1);
+}
+
+UINT WINAPI WNetGetConnection(LPSTR p1, LPSTR p2, UINT FAR *p3)
+{
+ return(1);
+}
+
+UINT WINAPI WNetCancelConnection(LPSTR p1, BOOL p2)
+{
+ return(1);
+}