[NET] Reorganize and improve the help texts (3/X)

- Add help texts for the START and STOP commands.
- Add text for the CONFIG command.
This commit is contained in:
Eric Kohl 2018-04-02 14:53:12 +02:00
parent b51b99e766
commit 925176af71
12 changed files with 142 additions and 56 deletions

View file

@ -70,9 +70,6 @@ done:
if (ServerInfo != NULL)
NetApiBufferFree(ServerInfo);
if (Status == NERR_Success)
ConResPuts(StdOut, IDS_ERROR_NO_ERROR);
return 0;
}
@ -161,8 +158,11 @@ cmdConfig(
}
else
{
ConResPuts(StdOut, IDS_CONFIG_TEXT);
}
if (result == 0)
ConResPuts(StdOut, IDS_ERROR_NO_ERROR);
return result;
}

View file

@ -173,7 +173,11 @@ cmdStart(INT argc, WCHAR **argv)
{
if (_wcsicmp(argv[i], L"/help") == 0)
{
ConResPuts(StdOut, IDS_START_HELP);
ConResPuts(StdOut, IDS_GENERIC_SYNTAX);
ConResPuts(StdOut, IDS_START_SYNTAX);
ConResPuts(StdOut, IDS_START_HELP_1);
ConResPuts(StdOut, IDS_START_HELP_2);
ConResPuts(StdOut, IDS_START_HELP_3);
return 1;
}
}

View file

@ -29,7 +29,11 @@ INT cmdStop(INT argc, WCHAR **argv)
{
if (_wcsicmp(argv[i], L"/help") == 0)
{
ConResPuts(StdOut, IDS_STOP_HELP);
ConResPuts(StdOut, IDS_GENERIC_SYNTAX);
ConResPuts(StdOut, IDS_STOP_SYNTAX);
ConResPuts(StdOut, IDS_STOP_HELP_1);
ConResPuts(StdOut, IDS_STOP_HELP_2);
ConResPuts(StdOut, IDS_STOP_HELP_3);
return 1;
}
}

View file

@ -153,7 +153,9 @@ INT cmdHelp(INT argc, WCHAR **argv)
if (_wcsicmp(argv[2], L"START") == 0)
{
ConResPuts(StdOut, IDS_START_SYNTAX);
ConResPuts(StdOut, IDS_START_HELP);
ConResPuts(StdOut, IDS_START_HELP_1);
ConResPuts(StdOut, IDS_START_HELP_2);
ConResPuts(StdOut, IDS_START_HELP_3);
return 0;
}
@ -167,7 +169,9 @@ INT cmdHelp(INT argc, WCHAR **argv)
if (_wcsicmp(argv[2], L"STOP") == 0)
{
ConResPuts(StdOut, IDS_STOP_SYNTAX);
ConResPuts(StdOut, IDS_STOP_HELP);
ConResPuts(StdOut, IDS_STOP_HELP_1);
ConResPuts(StdOut, IDS_STOP_HELP_2);
ConResPuts(StdOut, IDS_STOP_HELP_3);
return 0;
}

View file

@ -113,19 +113,26 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_PAUSE_SYNTAX "NET PAUSE service\n\n"
IDS_PAUSE_HELP_1 "NET PAUSE suspends a service. Pausing a service puts it on hold.\n\n"
IDS_PAUSE_HELP_2 "service The name of the service to be paused.\n\n"
IDS_SEND_SYNTAX "NET SEND ...\n\n"
IDS_SEND_HELP "SEND\n...\n\n"
IDS_SESSION_SYNTAX "NET SESSION ...\n\n"
IDS_SESSION_HELP "SESSION\n...\n\n"
IDS_SHARE_SYNTAX "NET SHARE ...\n\n"
IDS_SHARE_HELP "SHARE\n...\n\n"
IDS_START_SYNTAX "NET START <Service name>\n\n"
IDS_START_HELP "START\n...\n\n"
IDS_START_SYNTAX "NET START [service]\n\n"
IDS_START_HELP_1 "NET START starts services or lists running services.\n\n"
IDS_START_HELP_2 "service The name of the service to be started.\n\n"
IDS_START_HELP_3 "When typed at the command prompt, service name of two words or more must\n\
be enclosed in quotation marks. For example, NET START ""NET LOGON""\n\
starts the net logon service.\n\n"
IDS_STATISTICS_SYNTAX "NET STATISTICS ...\n\n"
IDS_STATISTICS_HELP "STATISTICS\n...\n\n"
IDS_STOP_SYNTAX "NET STOP <Service name>\n\n"
IDS_STOP_HELP "STOP\n...\n\n"
IDS_STOP_SYNTAX "NET STOP service\n\n"
IDS_STOP_HELP_1 "NET STOP stops services.\n\n"
IDS_STOP_HELP_2 "service The name of the service to be stopped.\n\n"
IDS_STOP_HELP_3 "Stopping a service cancels any network connection the service is\n\
using. Also, some services are dependent on others. Stopping one\n\
service can stop others. Some services cannot be stopped.\n\n"
IDS_TIME_SYNTAX "NET TIME ...\n\n"
IDS_TIME_HELP "TIME\n...\n\n"
IDS_USE_SYNTAX "NET USE ...\n\n"
@ -156,6 +163,8 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_ACCOUNTS_STANDALONE_SERVER "Standalone server"
IDS_ACCOUNTS_WORKSTATION "Workstation"
IDS_CONFIG_TEXT "The following running services can be controlled:\n\n\
Server\n Workstation\n\n"
IDS_CONFIG_SERVER_NAME "Server Name"
IDS_CONFIG_SERVER_COMMENT "Server Comment"
IDS_CONFIG_SERVER_VERSION "Software version"

View file

@ -122,12 +122,20 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_SESSION_HELP "SESSION\n...\n\n"
IDS_SHARE_SYNTAX "NET SHARE ...\n\n"
IDS_SHARE_HELP "SHARE\n...\n\n"
IDS_START_SYNTAX "NET START ...\n\n"
IDS_START_HELP "START\n...\n\n"
IDS_START_SYNTAX "NET START [service]\n\n"
IDS_START_HELP_1 "NET START starts services or lists running services.\n\n"
IDS_START_HELP_2 "service The name of the service to be started.\n\n"
IDS_START_HELP_3 "When typed at the command prompt, service name of two words or more must\n\
be enclosed in quotation marks. For example, NET START ""NET LOGON""\n\
starts the net logon service.\n\n"
IDS_STATISTICS_SYNTAX "NET STATISTICS ...\n\n"
IDS_STATISTICS_HELP "STATISTICS\n...\n\n"
IDS_STOP_SYNTAX "NET STOP <nombre del servicio>\n\n"
IDS_STOP_HELP "STOP\n...\n\n"
IDS_STOP_HELP_1 "NET STOP stops services.\n\n"
IDS_STOP_HELP_2 "service The name of the service to be stopped.\n\n"
IDS_STOP_HELP_3 "Stopping a service cancels any network connection the service is\n\
using. Also, some services are dependent on others. Stopping one\n\
service can stop others. Some services cannot be stopped.\n\n"
IDS_TIME_SYNTAX "NET TIME ...\n\n"
IDS_TIME_HELP "TIME\n...\n\n"
IDS_USE_SYNTAX "NET USE ...\n\n"
@ -157,6 +165,8 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_ACCOUNTS_STANDALONE_SERVER "Servidor independiente"
IDS_ACCOUNTS_WORKSTATION "Estación de trabajo"
IDS_CONFIG_TEXT "The following running services can be controlled:\n\n\
Server\n Workstation\n\n"
IDS_CONFIG_SERVER_NAME "Server Name"
IDS_CONFIG_SERVER_COMMENT "Server Comment"
IDS_CONFIG_SERVER_VERSION "Software version"

View file

@ -125,12 +125,20 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_SESSION_HELP "SESSION\n...\n\n"
IDS_SHARE_SYNTAX "NET SHARE ...\n\n"
IDS_SHARE_HELP "SHARE\n...\n\n"
IDS_START_SYNTAX "NET START ...\n\n"
IDS_START_HELP "START\n...\n\n"
IDS_START_SYNTAX "NET START [service]\n\n"
IDS_START_HELP_1 "NET START starts services or lists running services.\n\n"
IDS_START_HELP_2 "service The name of the service to be started.\n\n"
IDS_START_HELP_3 "When typed at the command prompt, service name of two words or more must\n\
be enclosed in quotation marks. For example, NET START ""NET LOGON""\n\
starts the net logon service.\n\n"
IDS_STATISTICS_SYNTAX "NET STATISTICS ...\n\n"
IDS_STATISTICS_HELP "STATISTICS\n...\n\n"
IDS_STOP_SYNTAX "NET STOP <nume serviciu>\n\n"
IDS_STOP_HELP "STOP\n...\n\n"
IDS_STOP_HELP_1 "NET STOP stops services.\n\n"
IDS_STOP_HELP_2 "service The name of the service to be stopped.\n\n"
IDS_STOP_HELP_3 "Stopping a service cancels any network connection the service is\n\
using. Also, some services are dependent on others. Stopping one\n\
service can stop others. Some services cannot be stopped.\n\n"
IDS_TIME_SYNTAX "NET TIME ...\n\n"
IDS_TIME_HELP "TIME\n...\n\n"
IDS_USE_SYNTAX "NET USE ...\n\n"
@ -160,6 +168,8 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_ACCOUNTS_STANDALONE_SERVER "Server de sine stătător"
IDS_ACCOUNTS_WORKSTATION "Stație de lucru"
IDS_CONFIG_TEXT "The following running services can be controlled:\n\n\
Server\n Workstation\n\n"
IDS_CONFIG_SERVER_NAME "Server Name"
IDS_CONFIG_SERVER_COMMENT "Server Comment"
IDS_CONFIG_SERVER_VERSION "Software version"

View file

@ -121,12 +121,20 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_SESSION_HELP "SESSION\n...\n\n"
IDS_SHARE_SYNTAX "NET SHARE ...\n\n"
IDS_SHARE_HELP "SHARE\n...\n\n"
IDS_START_SYNTAX "NET START ...\n\n"
IDS_START_HELP "START\n...\n\n"
IDS_START_SYNTAX "NET START [service]\n\n"
IDS_START_HELP_1 "NET START starts services or lists running services.\n\n"
IDS_START_HELP_2 "service The name of the service to be started.\n\n"
IDS_START_HELP_3 "When typed at the command prompt, service name of two words or more must\n\
be enclosed in quotation marks. For example, NET START ""NET LOGON""\n\
starts the net logon service.\n\n"
IDS_STATISTICS_SYNTAX "NET STATISTICS ...\n\n"
IDS_STATISTICS_HELP "STATISTICS\n...\n\n"
IDS_STOP_SYNTAX "NET STOP <имя_службы>\n\n"
IDS_STOP_HELP "STOP\n...\n\n"
IDS_STOP_HELP_1 "NET STOP stops services.\n\n"
IDS_STOP_HELP_2 "service The name of the service to be stopped.\n\n"
IDS_STOP_HELP_3 "Stopping a service cancels any network connection the service is\n\
using. Also, some services are dependent on others. Stopping one\n\
service can stop others. Some services cannot be stopped.\n\n"
IDS_TIME_SYNTAX "NET TIME ...\n\n"
IDS_TIME_HELP "TIME\n...\n\n"
IDS_USE_SYNTAX "NET USE ...\n\n"
@ -156,6 +164,8 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_ACCOUNTS_STANDALONE_SERVER "Автономный сервер"
IDS_ACCOUNTS_WORKSTATION "Рабочая станция"
IDS_CONFIG_TEXT "The following running services can be controlled:\n\n\
Server\n Workstation\n\n"
IDS_CONFIG_SERVER_NAME "Server Name"
IDS_CONFIG_SERVER_COMMENT "Server Comment"
IDS_CONFIG_SERVER_VERSION "Software version"

View file

@ -112,7 +112,7 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_NAME_HELP "NAME\n...\n\n"
IDS_PRINT_SYNTAX "NET PRINT ...\n\n"
IDS_PRINT_HELP "PRINT\n...\n\n"
IDS_PAUSE_SYNTAX "NET PAUSE <Hizmet Adı>\n\n"
IDS_PAUSE_SYNTAX "NET PAUSE service\n\n"
IDS_PAUSE_HELP_1 "NET PAUSE suspends a service. Pausing a service puts it on hold.\n\n"
IDS_PAUSE_HELP_2 "service The name of the service to be paused.\n\n"
IDS_SEND_SYNTAX "NET SEND ...\n\n"
@ -121,12 +121,20 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_SESSION_HELP "SESSION\n...\n\n"
IDS_SHARE_SYNTAX "NET SHARE ...\n\n"
IDS_SHARE_HELP "SHARE\n...\n\n"
IDS_START_SYNTAX "NET START <Hizmet Adı>\n\n"
IDS_START_HELP "START\n...\n\n"
IDS_START_SYNTAX "NET START [service]\n\n"
IDS_START_HELP_1 "NET START starts services or lists running services.\n\n"
IDS_START_HELP_2 "service The name of the service to be started.\n\n"
IDS_START_HELP_3 "When typed at the command prompt, service name of two words or more must\n\
be enclosed in quotation marks. For example, NET START ""NET LOGON""\n\
starts the net logon service.\n\n"
IDS_STATISTICS_SYNTAX "NET STATISTICS ...\n\n"
IDS_STATISTICS_HELP "STATISTICS\n...\n\n"
IDS_STOP_SYNTAX "NET STOP <Hizmet Adı>\n\n"
IDS_STOP_HELP "STOP\n...\n\n"
IDS_STOP_HELP_1 "NET STOP stops services.\n\n"
IDS_STOP_HELP_2 "service The name of the service to be stopped.\n\n"
IDS_STOP_HELP_3 "Stopping a service cancels any network connection the service is\n\
using. Also, some services are dependent on others. Stopping one\n\
service can stop others. Some services cannot be stopped.\n\n"
IDS_TIME_SYNTAX "NET TIME ...\n\n"
IDS_TIME_HELP "TIME\n...\n\n"
IDS_USE_SYNTAX "NET USE ...\n\n"
@ -156,6 +164,8 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_ACCOUNTS_STANDALONE_SERVER "Bağımsız sunucu"
IDS_ACCOUNTS_WORKSTATION "İş istasyonu"
IDS_CONFIG_TEXT "The following running services can be controlled:\n\n\
Server\n Workstation\n\n"
IDS_CONFIG_SERVER_NAME "Server Name"
IDS_CONFIG_SERVER_COMMENT "Server Comment"
IDS_CONFIG_SERVER_VERSION "Software version"

View file

@ -112,7 +112,7 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_NAME_HELP "NAME\n...\n\n"
IDS_PRINT_SYNTAX "NET PRINT ...\n\n"
IDS_PRINT_HELP "PRINT\n...\n\n"
IDS_PAUSE_SYNTAX "NET PAUSE <Service Name>\n\n"
IDS_PAUSE_SYNTAX "NET PAUSE service\n\n"
IDS_PAUSE_HELP_1 "NET PAUSE suspends a service. Pausing a service puts it on hold.\n\n"
IDS_PAUSE_HELP_2 "service The name of the service to be paused.\n\n"
IDS_SEND_SYNTAX "NET SEND ...\n\n"
@ -121,12 +121,20 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_SESSION_HELP "SESSION\n...\n\n"
IDS_SHARE_SYNTAX "NET SHARE ...\n\n"
IDS_SHARE_HELP "SHARE\n...\n\n"
IDS_START_SYNTAX "NET START <Service name>\n\n"
IDS_START_HELP "START\n...\n\n"
IDS_START_SYNTAX "NET START [service]\n\n"
IDS_START_HELP_1 "NET START starts services or lists running services.\n\n"
IDS_START_HELP_2 "service The name of the service to be started.\n\n"
IDS_START_HELP_3 "When typed at the command prompt, service name of two words or more must\n\
be enclosed in quotation marks. For example, NET START ""NET LOGON""\n\
starts the net logon service.\n\n"
IDS_STATISTICS_SYNTAX "NET STATISTICS ...\n\n"
IDS_STATISTICS_HELP "STATISTICS\n...\n\n"
IDS_STOP_SYNTAX "NET STOP <Service name>\n\n"
IDS_STOP_HELP "STOP\n...\n\n"
IDS_STOP_SYNTAX "NET STOP service\n\n"
IDS_STOP_HELP_1 "NET STOP stops services.\n\n"
IDS_STOP_HELP_2 "service The name of the service to be stopped.\n\n"
IDS_STOP_HELP_3 "Stopping a service cancels any network connection the service is\n\
using. Also, some services are dependent on others. Stopping one\n\
service can stop others. Some services cannot be stopped.\n\n"
IDS_TIME_SYNTAX "NET TIME ...\n\n"
IDS_TIME_HELP "TIME\n...\n\n"
IDS_USE_SYNTAX "NET USE ...\n\n"
@ -156,6 +164,8 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_ACCOUNTS_STANDALONE_SERVER "独立服务器"
IDS_ACCOUNTS_WORKSTATION "工作站"
IDS_CONFIG_TEXT "The following running services can be controlled:\n\n\
Server\n Workstation\n\n"
IDS_CONFIG_SERVER_NAME "Server Name"
IDS_CONFIG_SERVER_COMMENT "Server Comment"
IDS_CONFIG_SERVER_VERSION "Software version"

View file

@ -121,12 +121,20 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_SESSION_HELP "SESSION\n...\n\n"
IDS_SHARE_SYNTAX "NET SHARE ...\n\n"
IDS_SHARE_HELP "SHARE\n...\n\n"
IDS_START_SYNTAX "NET START <服務名稱>\n\n"
IDS_START_HELP "START\n...\n\n"
IDS_START_SYNTAX "NET START [service]\n\n"
IDS_START_HELP_1 "NET START starts services or lists running services.\n\n"
IDS_START_HELP_2 "service The name of the service to be started.\n\n"
IDS_START_HELP_3 "When typed at the command prompt, service name of two words or more must\n\
be enclosed in quotation marks. For example, NET START ""NET LOGON""\n\
starts the net logon service.\n\n"
IDS_STATISTICS_SYNTAX "NET STATISTICS ...\n\n"
IDS_STATISTICS_HELP "STATISTICS\n...\n\n"
IDS_STOP_SYNTAX "NET STOP <服務名稱>\n\n"
IDS_STOP_HELP "STOP\n...\n\n"
IDS_STOP_HELP_1 "NET STOP stops services.\n\n"
IDS_STOP_HELP_2 "service The name of the service to be stopped.\n\n"
IDS_STOP_HELP_3 "Stopping a service cancels any network connection the service is\n\
using. Also, some services are dependent on others. Stopping one\n\
service can stop others. Some services cannot be stopped.\n\n"
IDS_TIME_SYNTAX "NET TIME ...\n\n"
IDS_TIME_HELP "TIME\n...\n\n"
IDS_USE_SYNTAX "NET USE ...\n\n"
@ -156,6 +164,8 @@ message and suggested actions you can take to solve the problem.\n\n"
IDS_ACCOUNTS_STANDALONE_SERVER "獨立伺服器"
IDS_ACCOUNTS_WORKSTATION "工作站"
IDS_CONFIG_TEXT "The following running services can be controlled:\n\n\
Server\n Workstation\n\n"
IDS_CONFIG_SERVER_NAME "Server Name"
IDS_CONFIG_SERVER_COMMENT "Server Comment"
IDS_CONFIG_SERVER_VERSION "Software version"

View file

@ -52,20 +52,24 @@
#define IDS_SHARE_SYNTAX 149
#define IDS_SHARE_HELP 150
#define IDS_START_SYNTAX 151
#define IDS_START_HELP 152
#define IDS_STATISTICS_SYNTAX 153
#define IDS_STATISTICS_HELP 154
#define IDS_STOP_SYNTAX 155
#define IDS_STOP_HELP 156
#define IDS_TIME_SYNTAX 157
#define IDS_TIME_HELP 158
#define IDS_USE_SYNTAX 159
#define IDS_USE_HELP 160
#define IDS_USER_SYNTAX 161
#define IDS_USER_HELP 162
#define IDS_VIEW_SYNTAX 163
#define IDS_VIEW_HELP 164
#define IDS_NET_SYNTAX 165
#define IDS_START_HELP_1 152
#define IDS_START_HELP_2 153
#define IDS_START_HELP_3 154
#define IDS_STATISTICS_SYNTAX 155
#define IDS_STATISTICS_HELP 156
#define IDS_STOP_SYNTAX 157
#define IDS_STOP_HELP_1 158
#define IDS_STOP_HELP_2 159
#define IDS_STOP_HELP_3 160
#define IDS_TIME_SYNTAX 161
#define IDS_TIME_HELP 162
#define IDS_USE_SYNTAX 163
#define IDS_USE_HELP 164
#define IDS_USER_SYNTAX 165
#define IDS_USER_HELP 166
#define IDS_VIEW_SYNTAX 167
#define IDS_VIEW_HELP 168
#define IDS_NET_SYNTAX 169
#define IDS_ACCOUNTS_FORCE_LOGOFF 200
#define IDS_ACCOUNTS_LOGOFF_SECONDS 201
@ -82,14 +86,15 @@
#define IDS_ACCOUNTS_STANDALONE_SERVER 212
#define IDS_ACCOUNTS_WORKSTATION 213
#define IDS_CONFIG_SERVER_NAME 230
#define IDS_CONFIG_SERVER_COMMENT 231
#define IDS_CONFIG_SERVER_VERSION 232
#define IDS_CONFIG_SERVER_ACTIVE 233
#define IDS_CONFIG_SERVER_HIDDEN 234
#define IDS_CONFIG_SERVER_USERS 235
#define IDS_CONFIG_SERVER_FILES 236
#define IDS_CONFIG_SERVER_IDLE 237
#define IDS_CONFIG_TEXT 230
#define IDS_CONFIG_SERVER_NAME 231
#define IDS_CONFIG_SERVER_COMMENT 232
#define IDS_CONFIG_SERVER_VERSION 233
#define IDS_CONFIG_SERVER_ACTIVE 234
#define IDS_CONFIG_SERVER_HIDDEN 235
#define IDS_CONFIG_SERVER_USERS 236
#define IDS_CONFIG_SERVER_FILES 237
#define IDS_CONFIG_SERVER_IDLE 238
#define IDS_LOCALGROUP_ALIASES 300