Skip to content

Commit ff9c737

Browse files
committed
[NET] Add help text for the NET LOCALGROUP command
1 parent 3879129 commit ff9c737

File tree

10 files changed

+198
-43
lines changed

10 files changed

+198
-43
lines changed

base/applications/network/net/cmdLocalGroup.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,16 @@ cmdLocalGroup(
242242
{
243243
if (_wcsicmp(argv[i], L"/help") == 0)
244244
{
245-
ConResPuts(StdOut, IDS_LOCALGROUP_HELP);
245+
ConResPuts(StdOut, IDS_GENERIC_SYNTAX);
246+
ConResPuts(StdOut, IDS_LOCALGROUP_SYNTAX);
247+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_1);
248+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_2);
249+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_3);
250+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_4);
251+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_5);
252+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_6);
253+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_7);
254+
ConResPuts(StdOut, IDS_GENERIC_PAGE);
246255
return 0;
247256
}
248257
else if (_wcsicmp(argv[i], L"/add") == 0)

base/applications/network/net/help.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,13 @@ INT cmdHelp(INT argc, WCHAR **argv)
102102
if (_wcsicmp(argv[2], L"LOCALGROUP") == 0)
103103
{
104104
ConResPuts(StdOut, IDS_LOCALGROUP_SYNTAX);
105-
ConResPuts(StdOut, IDS_LOCALGROUP_HELP);
105+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_1);
106+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_2);
107+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_3);
108+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_4);
109+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_5);
110+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_6);
111+
ConResPuts(StdOut, IDS_LOCALGROUP_HELP_7);
106112
ConResPuts(StdOut, IDS_GENERIC_PAGE);
107113
return 0;
108114
}

base/applications/network/net/lang/en-US.rc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,27 @@ message and suggested actions you can take to solve the problem.\n\n"
105105
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [groupname [/COMMENT:""text""]] [/DOMAIN]\n\
106106
groupname {/ADD [/COMMENT:""text""] | /DELETE} [/DOMAIN]\n\
107107
groupname name [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
108-
IDS_LOCALGROUP_HELP "LOCALGROUP\n...\n\n"
108+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
109+
options, it displays the local groups on the computer.\n\n"
110+
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
111+
delete. Supply only a groupname to view a list of\n\
112+
users or global groups in a local group.\n"
113+
IDS_LOCALGROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
114+
Enclose the text inquotation marks.\n"
115+
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
116+
of the current domain. Otherwise, the operation is \n\
117+
performed on the local computer.\n"
118+
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
119+
remove from a local group. Separate multiple entries with\n\
120+
a space. Names may be users or global groups, but not\n\
121+
other local groups. If a user is from another doamin,\n\
122+
preface the username with the domain name (for\n\
123+
example, SALES\\RALPHR).\n"
124+
IDS_LOCALGROUP_HELP_6 "/ADD Adds a groupname or username to a local group. An account\n\
125+
must be established for users or global groups added to a\n\
126+
local group with this command.\n"
127+
IDS_LOCALGROUP_HELP_7 "/DELETE Removes a groupname or username from a local group.\n\n"
128+
109129
IDS_NAME_SYNTAX "NET NAME ...\n\n"
110130
IDS_NAME_HELP "NAME\n...\n\n"
111131
IDS_PRINT_SYNTAX "NET PRINT ...\n\n"

base/applications/network/net/lang/es-ES.rc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,26 @@ message and suggested actions you can take to solve the problem.\n\n"
108108
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [grupo [/COMMENT:""texto""]] [/DOMAIN]\n\
109109
grupo {/ADD [/COMMENT:""texto""] | /DELETE} [/DOMAIN]\n\
110110
grupo nombre [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
111-
IDS_LOCALGROUP_HELP "LOCALGROUP\n...\n\n"
111+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
112+
options, it displays the local groups on the computer.\n\n"
113+
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
114+
delete. Supply only a groupname to view a list of\n\
115+
users or global groups in a local group.\n"
116+
IDS_LOCALGROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
117+
Enclose the text inquotation marks.\n"
118+
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
119+
of the current domain. Otherwise, the operation is \n\
120+
performed on the local computer.\n"
121+
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
122+
remove from a local group. Separate multiple entries with\n\
123+
a space. Names may be users or global groups, but not\n\
124+
other local groups. If a user is from another doamin,\n\
125+
preface the username with the domain name (for\n\
126+
example, SALES\\RALPHR).\n"
127+
IDS_LOCALGROUP_HELP_6 "/ADD Adds a groupname or username to a local group. An account\n\
128+
must be established for users or global groups added to a\n\
129+
local group with this command.\n"
130+
IDS_LOCALGROUP_HELP_7 "/DELETE Removes a groupname or username from a local group.\n\n"
112131
IDS_NAME_SYNTAX "NET NAME ...\n\n"
113132
IDS_NAME_HELP "NAME\n...\n\n"
114133
IDS_PRINT_SYNTAX "NET PRINT ...\n\n"

base/applications/network/net/lang/ro-RO.rc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,26 @@ message and suggested actions you can take to solve the problem.\n\n"
111111
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [nume-de-grup [/COMMENT:""text""]] [/DOMAIN]\n\
112112
nume-de-grup {/ADD [/COMMENT:""text""] | /DELETE} [/DOMAIN]\n\
113113
nume-de-grup nume [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
114-
IDS_LOCALGROUP_HELP "LOCALGROUP\n...\n\n"
114+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
115+
options, it displays the local groups on the computer.\n\n"
116+
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
117+
delete. Supply only a groupname to view a list of\n\
118+
users or global groups in a local group.\n"
119+
IDS_LOCALGROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
120+
Enclose the text inquotation marks.\n"
121+
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
122+
of the current domain. Otherwise, the operation is \n\
123+
performed on the local computer.\n"
124+
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
125+
remove from a local group. Separate multiple entries with\n\
126+
a space. Names may be users or global groups, but not\n\
127+
other local groups. If a user is from another doamin,\n\
128+
preface the username with the domain name (for\n\
129+
example, SALES\\RALPHR).\n"
130+
IDS_LOCALGROUP_HELP_6 "/ADD Adds a groupname or username to a local group. An account\n\
131+
must be established for users or global groups added to a\n\
132+
local group with this command.\n"
133+
IDS_LOCALGROUP_HELP_7 "/DELETE Removes a groupname or username from a local group.\n\n"
115134
IDS_NAME_SYNTAX "NET NAME ...\n\n"
116135
IDS_NAME_HELP "NAME\n...\n\n"
117136
IDS_PRINT_SYNTAX "NET PRINT ...\n\n"

base/applications/network/net/lang/ru-RU.rc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,26 @@ message and suggested actions you can take to solve the problem.\n\n"
107107
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [имя_группы [/COMMENT:""текст""]] [/DOMAIN]\n\
108108
имя_группы {/ADD [/COMMENT:""текст""] | /DELETE} [/DOMAIN]\n\
109109
имя_группы имя [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
110-
IDS_LOCALGROUP_HELP "LOCALGROUP\n...\n\n"
110+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
111+
options, it displays the local groups on the computer.\n\n"
112+
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
113+
delete. Supply only a groupname to view a list of\n\
114+
users or global groups in a local group.\n"
115+
IDS_LOCALGROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
116+
Enclose the text inquotation marks.\n"
117+
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
118+
of the current domain. Otherwise, the operation is \n\
119+
performed on the local computer.\n"
120+
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
121+
remove from a local group. Separate multiple entries with\n\
122+
a space. Names may be users or global groups, but not\n\
123+
other local groups. If a user is from another doamin,\n\
124+
preface the username with the domain name (for\n\
125+
example, SALES\\RALPHR).\n"
126+
IDS_LOCALGROUP_HELP_6 "/ADD Adds a groupname or username to a local group. An account\n\
127+
must be established for users or global groups added to a\n\
128+
local group with this command.\n"
129+
IDS_LOCALGROUP_HELP_7 "/DELETE Removes a groupname or username from a local group.\n\n"
111130
IDS_NAME_SYNTAX "NET NAME ...\n\n"
112131
IDS_NAME_HELP "NAME\n...\n\n"
113132
IDS_PRINT_SYNTAX "NET PRINT ...\n\n"

base/applications/network/net/lang/tr-TR.rc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,26 @@ message and suggested actions you can take to solve the problem.\n\n"
107107
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [takım adı [/COMMENT:""metin""]] [/DOMAIN]\n\
108108
takım adı {/ADD [/COMMENT:""metin""] | /DELETE} [/DOMAIN]\n\
109109
takım adı ad [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
110-
IDS_LOCALGROUP_HELP "LOCALGROUP\n...\n\n"
110+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
111+
options, it displays the local groups on the computer.\n\n"
112+
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
113+
delete. Supply only a groupname to view a list of\n\
114+
users or global groups in a local group.\n"
115+
IDS_LOCALGROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
116+
Enclose the text inquotation marks.\n"
117+
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
118+
of the current domain. Otherwise, the operation is \n\
119+
performed on the local computer.\n"
120+
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
121+
remove from a local group. Separate multiple entries with\n\
122+
a space. Names may be users or global groups, but not\n\
123+
other local groups. If a user is from another doamin,\n\
124+
preface the username with the domain name (for\n\
125+
example, SALES\\RALPHR).\n"
126+
IDS_LOCALGROUP_HELP_6 "/ADD Adds a groupname or username to a local group. An account\n\
127+
must be established for users or global groups added to a\n\
128+
local group with this command.\n"
129+
IDS_LOCALGROUP_HELP_7 "/DELETE Removes a groupname or username from a local group.\n\n"
111130
IDS_NAME_SYNTAX "NET NAME ...\n\n"
112131
IDS_NAME_HELP "NAME\n...\n\n"
113132
IDS_PRINT_SYNTAX "NET PRINT ...\n\n"

base/applications/network/net/lang/zh-CN.rc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,26 @@ message and suggested actions you can take to solve the problem.\n\n"
107107
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [groupname [/COMMENT:""text""]] [/DOMAIN]\n\
108108
groupname {/ADD [/COMMENT:""text""] | /DELETE} [/DOMAIN]\n\
109109
groupname name [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
110-
IDS_LOCALGROUP_HELP "LOCALGROUP\n...\n\n"
110+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
111+
options, it displays the local groups on the computer.\n\n"
112+
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
113+
delete. Supply only a groupname to view a list of\n\
114+
users or global groups in a local group.\n"
115+
IDS_LOCALGROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
116+
Enclose the text inquotation marks.\n"
117+
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
118+
of the current domain. Otherwise, the operation is \n\
119+
performed on the local computer.\n"
120+
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
121+
remove from a local group. Separate multiple entries with\n\
122+
a space. Names may be users or global groups, but not\n\
123+
other local groups. If a user is from another doamin,\n\
124+
preface the username with the domain name (for\n\
125+
example, SALES\\RALPHR).\n"
126+
IDS_LOCALGROUP_HELP_6 "/ADD Adds a groupname or username to a local group. An account\n\
127+
must be established for users or global groups added to a\n\
128+
local group with this command.\n"
129+
IDS_LOCALGROUP_HELP_7 "/DELETE Removes a groupname or username from a local group.\n\n"
111130
IDS_NAME_SYNTAX "NET NAME ...\n\n"
112131
IDS_NAME_HELP "NAME\n...\n\n"
113132
IDS_PRINT_SYNTAX "NET PRINT ...\n\n"

base/applications/network/net/lang/zh-TW.rc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,26 @@ message and suggested actions you can take to solve the problem.\n\n"
107107
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [組名 [/COMMENT:""文字""]] [/DOMAIN]\n\
108108
組名 {/ADD [/COMMENT:""文字""] | /DELETE} [/DOMAIN]\n\
109109
組名稱 [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
110-
IDS_LOCALGROUP_HELP "LOCALGROUP\n...\n\n"
110+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
111+
options, it displays the local groups on the computer.\n\n"
112+
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
113+
delete. Supply only a groupname to view a list of\n\
114+
users or global groups in a local group.\n"
115+
IDS_LOCALGROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
116+
Enclose the text inquotation marks.\n"
117+
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
118+
of the current domain. Otherwise, the operation is \n\
119+
performed on the local computer.\n"
120+
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
121+
remove from a local group. Separate multiple entries with\n\
122+
a space. Names may be users or global groups, but not\n\
123+
other local groups. If a user is from another doamin,\n\
124+
preface the username with the domain name (for\n\
125+
example, SALES\\RALPHR).\n"
126+
IDS_LOCALGROUP_HELP_6 "/ADD Adds a groupname or username to a local group. An account\n\
127+
must be established for users or global groups added to a\n\
128+
local group with this command.\n"
129+
IDS_LOCALGROUP_HELP_7 "/DELETE Removes a groupname or username from a local group.\n\n"
111130
IDS_NAME_SYNTAX "NET NAME ...\n\n"
112131
IDS_NAME_HELP "NAME\n...\n\n"
113132
IDS_PRINT_SYNTAX "NET PRINT ...\n\n"

base/applications/network/net/resource.h

Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -37,40 +37,46 @@
3737
#define IDS_HELPMSG_HELP_1 134
3838
#define IDS_HELPMSG_HELP_2 135
3939
#define IDS_LOCALGROUP_SYNTAX 136
40-
#define IDS_LOCALGROUP_HELP 137
41-
#define IDS_NAME_SYNTAX 138
42-
#define IDS_NAME_HELP 139
43-
#define IDS_PAUSE_SYNTAX 140
44-
#define IDS_PAUSE_HELP_1 141
45-
#define IDS_PAUSE_HELP_2 142
46-
#define IDS_PRINT_SYNTAX 143
47-
#define IDS_PRINT_HELP 144
48-
#define IDS_SEND_SYNTAX 145
49-
#define IDS_SEND_HELP 146
50-
#define IDS_SESSION_SYNTAX 147
51-
#define IDS_SESSION_HELP 148
52-
#define IDS_SHARE_SYNTAX 149
53-
#define IDS_SHARE_HELP 150
54-
#define IDS_START_SYNTAX 151
55-
#define IDS_START_HELP_1 152
56-
#define IDS_START_HELP_2 153
57-
#define IDS_START_HELP_3 154
58-
#define IDS_STATISTICS_SYNTAX 155
59-
#define IDS_STATISTICS_HELP_1 156
60-
#define IDS_STATISTICS_HELP_2 157
61-
#define IDS_STOP_SYNTAX 158
62-
#define IDS_STOP_HELP_1 159
63-
#define IDS_STOP_HELP_2 160
64-
#define IDS_STOP_HELP_3 161
65-
#define IDS_TIME_SYNTAX 162
66-
#define IDS_TIME_HELP 163
67-
#define IDS_USE_SYNTAX 164
68-
#define IDS_USE_HELP 165
69-
#define IDS_USER_SYNTAX 166
70-
#define IDS_USER_HELP 167
71-
#define IDS_VIEW_SYNTAX 168
72-
#define IDS_VIEW_HELP 169
73-
#define IDS_NET_SYNTAX 170
40+
#define IDS_LOCALGROUP_HELP_1 137
41+
#define IDS_LOCALGROUP_HELP_2 138
42+
#define IDS_LOCALGROUP_HELP_3 139
43+
#define IDS_LOCALGROUP_HELP_4 140
44+
#define IDS_LOCALGROUP_HELP_5 141
45+
#define IDS_LOCALGROUP_HELP_6 142
46+
#define IDS_LOCALGROUP_HELP_7 143
47+
#define IDS_NAME_SYNTAX 144
48+
#define IDS_NAME_HELP 145
49+
#define IDS_PAUSE_SYNTAX 146
50+
#define IDS_PAUSE_HELP_1 147
51+
#define IDS_PAUSE_HELP_2 148
52+
#define IDS_PRINT_SYNTAX 149
53+
#define IDS_PRINT_HELP 150
54+
#define IDS_SEND_SYNTAX 151
55+
#define IDS_SEND_HELP 152
56+
#define IDS_SESSION_SYNTAX 153
57+
#define IDS_SESSION_HELP 154
58+
#define IDS_SHARE_SYNTAX 155
59+
#define IDS_SHARE_HELP 156
60+
#define IDS_START_SYNTAX 157
61+
#define IDS_START_HELP_1 158
62+
#define IDS_START_HELP_2 159
63+
#define IDS_START_HELP_3 160
64+
#define IDS_STATISTICS_SYNTAX 161
65+
#define IDS_STATISTICS_HELP_1 162
66+
#define IDS_STATISTICS_HELP_2 163
67+
#define IDS_STOP_SYNTAX 164
68+
#define IDS_STOP_HELP_1 165
69+
#define IDS_STOP_HELP_2 166
70+
#define IDS_STOP_HELP_3 167
71+
#define IDS_TIME_SYNTAX 168
72+
#define IDS_TIME_HELP 169
73+
#define IDS_USE_SYNTAX 170
74+
#define IDS_USE_HELP 171
75+
#define IDS_USER_SYNTAX 172
76+
#define IDS_USER_HELP 173
77+
#define IDS_VIEW_SYNTAX 174
78+
#define IDS_VIEW_HELP 175
79+
#define IDS_NET_SYNTAX 176
7480

7581
#define IDS_ACCOUNTS_FORCE_LOGOFF 200
7682
#define IDS_ACCOUNTS_LOGOFF_SECONDS 201

0 commit comments

Comments
 (0)