2006-08-25 17:50:26 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
2007-10-19 23:21:45 +00:00
|
|
|
* PROJECT: ReactOS net command
|
2015-09-09 13:13:35 +00:00
|
|
|
* FILE: base/applications/network/net/help.c
|
2007-10-19 23:21:45 +00:00
|
|
|
* PURPOSE:
|
2006-08-25 17:50:26 +00:00
|
|
|
*
|
2007-10-19 23:21:45 +00:00
|
|
|
* PROGRAMMERS: Magnus Olsen (greatlord@reactos.org)
|
2006-08-25 17:50:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "net.h"
|
|
|
|
|
2012-09-24 12:37:12 +00:00
|
|
|
INT cmdHelp(INT argc, WCHAR **argv)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 10:23:15 +00:00
|
|
|
ConResPuts(StdOut, IDS_GENERIC_SYNTAX);
|
|
|
|
|
|
|
|
/*
|
2013-04-30 02:57:30 +00:00
|
|
|
if (argc != 3)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_HELP_SYNTAX);
|
2014-06-09 12:56:05 +00:00
|
|
|
return 0;
|
2006-08-25 17:50:26 +00:00
|
|
|
}
|
2018-04-01 10:23:15 +00:00
|
|
|
*/
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"ACCOUNTS") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 10:23:15 +00:00
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_SYNTAX);
|
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_HELP_2);
|
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_HELP_3);
|
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_HELP_4);
|
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_HELP_5);
|
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_HELP_6);
|
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_HELP_7);
|
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_HELP_8);
|
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_HELP_9);
|
|
|
|
ConResPuts(StdOut, IDS_ACCOUNTS_HELP_10);
|
|
|
|
ConResPuts(StdOut, IDS_GENERIC_PAGE);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"COMPUTER") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 10:23:15 +00:00
|
|
|
ConResPuts(StdOut, IDS_COMPUTER_SYNTAX);
|
|
|
|
ConResPuts(StdOut, IDS_COMPUTER_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_COMPUTER_HELP_2);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"CONFIG") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 10:23:15 +00:00
|
|
|
if ((argc > 3) && (_wcsicmp(argv[3], L"SERVER") == 0))
|
|
|
|
{
|
|
|
|
ConResPuts(StdOut, IDS_CONFIG_SERVER_SYNTAX);
|
|
|
|
ConResPuts(StdOut, IDS_CONFIG_SERVER_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_CONFIG_SERVER_HELP_2);
|
|
|
|
ConResPuts(StdOut, IDS_CONFIG_SERVER_HELP_3);
|
|
|
|
ConResPuts(StdOut, IDS_CONFIG_SERVER_HELP_4);
|
|
|
|
ConResPuts(StdOut, IDS_CONFIG_SERVER_HELP_5);
|
|
|
|
ConResPuts(StdOut, IDS_GENERIC_PAGE);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
ConResPuts(StdOut, IDS_CONFIG_SYNTAX);
|
|
|
|
ConResPuts(StdOut, IDS_CONFIG_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_CONFIG_HELP_2);
|
|
|
|
ConResPuts(StdOut, IDS_GENERIC_PAGE);
|
|
|
|
return 0;
|
|
|
|
}
|
2006-08-25 17:50:26 +00:00
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"CONTINUE") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 10:23:15 +00:00
|
|
|
ConResPuts(StdOut, IDS_CONTINUE_SYNTAX);
|
|
|
|
ConResPuts(StdOut, IDS_CONTINUE_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_CONTINUE_HELP_2);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"FILE") == 0)
|
2014-06-09 12:56:05 +00:00
|
|
|
{
|
2018-04-01 10:23:15 +00:00
|
|
|
ConResPuts(StdOut, IDS_FILE_SYNTAX);
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_FILE_HELP);
|
2014-06-09 12:56:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"GROUP") == 0)
|
2014-06-09 12:56:05 +00:00
|
|
|
{
|
2018-04-01 10:23:15 +00:00
|
|
|
ConResPuts(StdOut, IDS_GROUP_SYNTAX);
|
2018-04-14 12:54:50 +00:00
|
|
|
ConResPuts(StdOut, IDS_GROUP_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_GROUP_HELP_2);
|
|
|
|
ConResPuts(StdOut, IDS_GROUP_HELP_3);
|
|
|
|
ConResPuts(StdOut, IDS_GROUP_HELP_4);
|
|
|
|
ConResPuts(StdOut, IDS_GROUP_HELP_5);
|
|
|
|
ConResPuts(StdOut, IDS_GROUP_HELP_6);
|
|
|
|
ConResPuts(StdOut, IDS_GROUP_HELP_7);
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_GENERIC_PAGE);
|
2014-06-09 12:56:05 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"HELPMSG") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_HELPMSG_SYNTAX);
|
|
|
|
ConResPuts(StdOut, IDS_HELPMSG_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_HELPMSG_HELP_2);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"LOCALGROUP") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 10:23:15 +00:00
|
|
|
ConResPuts(StdOut, IDS_LOCALGROUP_SYNTAX);
|
2018-04-14 11:23:37 +00:00
|
|
|
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_2);
|
|
|
|
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_3);
|
|
|
|
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_4);
|
|
|
|
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_5);
|
|
|
|
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_6);
|
|
|
|
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_7);
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_GENERIC_PAGE);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"NAME") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_NAME_SYNTAX);
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_NAME_HELP);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"PAUSE") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_PAUSE_SYNTAX);
|
|
|
|
ConResPuts(StdOut, IDS_PAUSE_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_PAUSE_HELP_2);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"PRINT") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_PRINT_SYNTAX);
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_PRINT_HELP);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"SEND") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_SEND_SYNTAX);
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_SEND_HELP);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"SESSION") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_SESSION_SYNTAX);
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_SESSION_HELP);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"SHARE") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_SHARE_SYNTAX);
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_SHARE_HELP);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"START") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_START_SYNTAX);
|
2018-04-02 12:53:12 +00:00
|
|
|
ConResPuts(StdOut, IDS_START_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_START_HELP_2);
|
|
|
|
ConResPuts(StdOut, IDS_START_HELP_3);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"STATISTICS") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_STATISTICS_SYNTAX);
|
2018-04-08 18:04:11 +00:00
|
|
|
ConResPuts(StdOut, IDS_STATISTICS_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_STATISTICS_HELP_2);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"STOP") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_STOP_SYNTAX);
|
2018-04-02 12:53:12 +00:00
|
|
|
ConResPuts(StdOut, IDS_STOP_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_STOP_HELP_2);
|
|
|
|
ConResPuts(StdOut, IDS_STOP_HELP_3);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"TIME") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_TIME_SYNTAX);
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_TIME_HELP);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"USE") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_USE_SYNTAX);
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_USE_HELP);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"USER") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_USER_SYNTAX);
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_USER_HELP);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"VIEW") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_VIEW_SYNTAX);
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_VIEW_HELP);
|
2006-08-25 17:50:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-06-09 12:56:05 +00:00
|
|
|
#if 0
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"SERVICES") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-09-01 18:00:06 +00:00
|
|
|
if (_wcsicmp(argv[2], L"SYNTAX") == 0)
|
2006-08-25 17:50:26 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2014-06-09 12:56:05 +00:00
|
|
|
#endif
|
|
|
|
|
2016-10-07 22:50:32 +00:00
|
|
|
ConResPuts(StdOut, IDS_HELP_SYNTAX);
|
2018-04-01 14:51:44 +00:00
|
|
|
ConResPuts(StdOut, IDS_HELP_HELP_1);
|
|
|
|
ConResPuts(StdOut, IDS_HELP_HELP_2);
|
2006-08-25 17:50:26 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|