net.exe: Initial stub.

This commit is contained in:
Tim Schwartz 2007-05-02 12:30:19 -05:00 committed by Alexandre Julliard
parent 8ecd3465d9
commit 451616ee45
7 changed files with 63 additions and 0 deletions

1
.gitignore vendored
View File

@ -756,6 +756,7 @@ programs/iexplore/iexplore
programs/msiexec/msiexec
programs/msiexec/msiexec.ico
programs/msiexec/rsrc.res
programs/net/net
programs/notepad/notepad
programs/notepad/rsrc.res
programs/oleview/oleview

View File

@ -449,6 +449,7 @@ ALL_MAKEFILES = \
programs/icinfo/Makefile \
programs/iexplore/Makefile \
programs/msiexec/Makefile \
programs/net/Makefile \
programs/notepad/Makefile \
programs/oleview/Makefile \
programs/progman/Makefile \
@ -794,6 +795,7 @@ programs/hh/Makefile: programs/hh/Makefile.in programs/Makeprog.rules
programs/icinfo/Makefile: programs/icinfo/Makefile.in programs/Makeprog.rules
programs/iexplore/Makefile: programs/iexplore/Makefile.in programs/Makeprog.rules
programs/msiexec/Makefile: programs/msiexec/Makefile.in programs/Makeprog.rules
programs/net/Makefile: programs/net/Makefile.in programs/Makeprog.rules
programs/notepad/Makefile: programs/notepad/Makefile.in programs/Makeprog.rules
programs/oleview/Makefile: programs/oleview/Makefile.in programs/Makeprog.rules
programs/progman/Makefile: programs/progman/Makefile.in programs/Makeprog.rules

3
configure vendored
View File

@ -20903,6 +20903,8 @@ ac_config_files="$ac_config_files programs/iexplore/Makefile"
ac_config_files="$ac_config_files programs/msiexec/Makefile"
ac_config_files="$ac_config_files programs/net/Makefile"
ac_config_files="$ac_config_files programs/notepad/Makefile"
ac_config_files="$ac_config_files programs/oleview/Makefile"
@ -21838,6 +21840,7 @@ do
"programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
"programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
"programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
"programs/net/Makefile") CONFIG_FILES="$CONFIG_FILES programs/net/Makefile" ;;
"programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
"programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
"programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;

View File

@ -1776,6 +1776,7 @@ AC_CONFIG_FILES([programs/hh/Makefile])
AC_CONFIG_FILES([programs/icinfo/Makefile])
AC_CONFIG_FILES([programs/iexplore/Makefile])
AC_CONFIG_FILES([programs/msiexec/Makefile])
AC_CONFIG_FILES([programs/net/Makefile])
AC_CONFIG_FILES([programs/notepad/Makefile])
AC_CONFIG_FILES([programs/oleview/Makefile])
AC_CONFIG_FILES([programs/progman/Makefile])

View File

@ -17,6 +17,7 @@ SUBDIRS = \
icinfo \
iexplore \
msiexec \
net \
notepad \
oleview \
progman \
@ -57,6 +58,7 @@ INSTALLSUBDIRS = \
icinfo \
iexplore \
msiexec \
net \
notepad \
oleview \
progman \

13
programs/net/Makefile.in Normal file
View File

@ -0,0 +1,13 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = net.exe
APPMODE = -mconsole
IMPORTS = kernel32
C_SRCS = net.c
@MAKE_PROG_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend

41
programs/net/net.c Normal file
View File

@ -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;
}