[NET][MC] Replace strings for the ACCOUNTS, GROUP and LOCALGROUP commands by netmsg...
[reactos.git] / base / applications / network / net / cmdHelp.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS net command
4 * FILE: base/applications/network/net/cmdHelp.c
5 * PURPOSE:
6 *
7 * PROGRAMMERS: Magnus Olsen (greatlord@reactos.org)
8 */
9
10 #include "net.h"
11
12 INT cmdHelp(INT argc, WCHAR **argv)
13 {
14 ConResPuts(StdOut, IDS_GENERIC_SYNTAX);
15
16 if (argc != 3)
17 {
18 PrintNetMessage(MSG_HELP_SYNTAX);
19 PrintNetMessage(MSG_HELP_HELP);
20 return 0;
21 }
22
23 if (_wcsicmp(argv[2], L"ACCOUNTS") == 0)
24 {
25 PrintNetMessage(MSG_ACCOUNTS_SYNTAX);
26 PrintNetMessage(MSG_ACCOUNTS_HELP);
27 return 0;
28 }
29
30 if (_wcsicmp(argv[2], L"COMPUTER") == 0)
31 {
32 PrintNetMessage(MSG_COMPUTER_SYNTAX);
33 PrintNetMessage(MSG_COMPUTER_HELP);
34 return 0;
35 }
36
37 if (_wcsicmp(argv[2], L"CONFIG") == 0)
38 {
39 if ((argc > 3) && (_wcsicmp(argv[3], L"SERVER") == 0))
40 {
41 PrintNetMessage(MSG_CONFIG_SERVER_SYNTAX);
42 PrintNetMessage(MSG_CONFIG_SERVER_HELP);
43 return 0;
44 }
45 else
46 {
47 PrintNetMessage(MSG_CONFIG_SYNTAX);
48 PrintNetMessage(MSG_CONFIG_HELP);
49 return 0;
50 }
51 }
52
53 if (_wcsicmp(argv[2], L"CONTINUE") == 0)
54 {
55 PrintNetMessage(MSG_CONTINUE_SYNTAX);
56 PrintNetMessage(MSG_CONTINUE_HELP);
57 return 0;
58 }
59
60 if (_wcsicmp(argv[2], L"FILE") == 0)
61 {
62 PrintNetMessage(MSG_FILE_SYNTAX);
63 PrintNetMessage(MSG_FILE_HELP);
64 return 0;
65 }
66
67 if (_wcsicmp(argv[2], L"GROUP") == 0)
68 {
69 PrintNetMessage(MSG_GROUP_SYNTAX);
70 PrintNetMessage(MSG_GROUP_HELP);
71 return 0;
72 }
73
74 if (_wcsicmp(argv[2], L"HELPMSG") == 0)
75 {
76 PrintNetMessage(MSG_HELPMSG_SYNTAX);
77 PrintNetMessage(MSG_HELPMSG_HELP);
78 return 0;
79 }
80
81 if (_wcsicmp(argv[2], L"LOCALGROUP") == 0)
82 {
83 PrintNetMessage(MSG_LOCALGROUP_SYNTAX);
84 PrintNetMessage(MSG_LOCALGROUP_HELP);
85 return 0;
86 }
87
88 if (_wcsicmp(argv[2], L"NAME") == 0)
89 {
90 PrintNetMessage(MSG_NAME_SYNTAX);
91 PrintNetMessage(MSG_NAME_HELP);
92 return 0;
93 }
94
95 if (_wcsicmp(argv[2], L"PAUSE") == 0)
96 {
97 PrintNetMessage(MSG_PAUSE_SYNTAX);
98 PrintNetMessage(MSG_PAUSE_HELP);
99 return 0;
100 }
101
102 if (_wcsicmp(argv[2], L"PRINT") == 0)
103 {
104 PrintNetMessage(MSG_PRINT_SYNTAX);
105 PrintNetMessage(MSG_PRINT_HELP);
106 return 0;
107 }
108
109 if (_wcsicmp(argv[2], L"SEND") == 0)
110 {
111 PrintNetMessage(MSG_SEND_SYNTAX);
112 PrintNetMessage(MSG_SEND_HELP);
113 return 0;
114 }
115
116 if (_wcsicmp(argv[2], L"SESSION") == 0)
117 {
118 PrintNetMessage(MSG_SESSION_SYNTAX);
119 PrintNetMessage(MSG_SESSION_HELP);
120 return 0;
121 }
122
123 if (_wcsicmp(argv[2], L"SHARE") == 0)
124 {
125 PrintNetMessage(MSG_SHARE_SYNTAX);
126 PrintNetMessage(MSG_SHARE_HELP);
127 return 0;
128 }
129
130 if (_wcsicmp(argv[2], L"START") == 0)
131 {
132 PrintNetMessage(MSG_START_SYNTAX);
133 PrintNetMessage(MSG_START_HELP);
134 return 0;
135 }
136
137 if (_wcsicmp(argv[2], L"STATISTICS") == 0)
138 {
139 PrintNetMessage(MSG_STATISTICS_SYNTAX);
140 PrintNetMessage(MSG_STATISTICS_HELP);
141 return 0;
142 }
143
144 if (_wcsicmp(argv[2], L"STOP") == 0)
145 {
146 PrintNetMessage(MSG_STOP_SYNTAX);
147 PrintNetMessage(MSG_STOP_HELP);
148 return 0;
149 }
150
151 if (_wcsicmp(argv[2], L"TIME") == 0)
152 {
153 PrintNetMessage(MSG_TIME_SYNTAX);
154 PrintNetMessage(MSG_TIME_HELP);
155 return 0;
156 }
157
158 if (_wcsicmp(argv[2], L"USE") == 0)
159 {
160 PrintNetMessage(MSG_USE_SYNTAX);
161 PrintNetMessage(MSG_USE_HELP);
162 return 0;
163 }
164
165 if (_wcsicmp(argv[2], L"USER") == 0)
166 {
167 PrintNetMessage(MSG_USER_SYNTAX);
168 PrintNetMessage(MSG_USER_HELP);
169 return 0;
170 }
171
172 if (_wcsicmp(argv[2], L"VIEW") == 0)
173 {
174 PrintNetMessage(MSG_VIEW_SYNTAX);
175 PrintNetMessage(MSG_VIEW_HELP);
176 return 0;
177 }
178
179 #if 0
180 if (_wcsicmp(argv[2], L"SERVICES") == 0)
181 {
182 return 0;
183 }
184 #endif
185
186 if (_wcsicmp(argv[2], L"SYNTAX") == 0)
187 {
188 PrintNetMessage(MSG_SYNTAX_HELP);
189 return 0;
190 }
191
192 PrintNetMessage(MSG_HELP_SYNTAX);
193 PrintNetMessage(MSG_HELP_HELP);
194
195 return 0;
196 }
197
198
199 INT
200 cmdSyntax(INT argc, WCHAR **argv)
201 {
202 ConResPuts(StdOut, IDS_GENERIC_SYNTAX);
203 PrintNetMessage(MSG_SYNTAX_HELP);
204 return 0;
205 }