[PATCH] Adds stub for net.exe

Tim Schwartz tim at sanityinternet.com
Wed May 2 12:30:19 CDT 2007


---
 programs/Makefile.in     |    3 +++
 programs/net/Makefile.in |   13 +++++++++++++
 programs/net/net.c       |   41 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/programs/Makefile.in b/programs/Makefile.in
index f164c0b..4c44119 100644
--- a/programs/Makefile.in
+++ b/programs/Makefile.in
@@ -17,6 +17,7 @@ SUBDIRS = \
     icinfo \
     iexplore \
     msiexec \
+    net \
     notepad \
     oleview \
     progman \
@@ -57,6 +58,7 @@ INSTALLSUBDIRS = \
     icinfo \
     iexplore \
     msiexec \
+    net \
     notepad \
     oleview \
     progman \
@@ -86,6 +88,7 @@ INSTALLSUBDIRS = \
 # Programs to install in bin directory
 INSTALLPROGS = \
     msiexec \
+    net \
     notepad \
     progman \
     regedit \
diff --git a/programs/net/Makefile.in b/programs/net/Makefile.in
new file mode 100644
index 0000000..5db7fc0
--- /dev/null
+++ b/programs/net/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = net.exe
+APPMODE   = -mconsole
+IMPORTS   = kernel32
+
+C_SRCS = net.c
+
+ at MAKE_PROG_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/programs/net/net.c b/programs/net/net.c
new file mode 100644
index 0000000..d15d5fd
--- /dev/null
+++ b/programs/net/net.c
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2007 Tim Schwartz
+ *
+ * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdio.h>
+#include <string.h>
+
+int main(int argc, char *argv[])
+{
+    int ret = 0;
+
+    if (argc < 2)
+    {
+        printf("The syntax of this command is:\n\n");
+        printf("NET [ HELP ]\n");
+        return 1;
+    }
+
+    if(!strcasecmp(argv[1], "help"))
+    {
+        printf("The syntax of this command is:\n\n");
+        printf("NET HELP command\n    -or-\nNET command /HELP\n\n");
+        printf("   Commands available are:\n");
+        printf("   NET HELP\n");
+    }
+    return ret;
+}
-- 
1.4.1



More information about the wine-patches mailing list