[NET] Reorganize and improve the help texts (1/X)
[reactos.git] / base / applications / network / net / help.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS net command
4 * FILE: base/applications/network/net/help.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 /*
17 if (argc != 3)
18 {
19 ConResPuts(StdOut, IDS_HELP_SYNTAX);
20 return 0;
21 }
22 */
23 if (_wcsicmp(argv[2], L"ACCOUNTS") == 0)
24 {
25 ConResPuts(StdOut, IDS_ACCOUNTS_SYNTAX);
26 ConResPuts(StdOut, IDS_ACCOUNTS_HELP_1);
27 ConResPuts(StdOut, IDS_ACCOUNTS_HELP_2);
28 ConResPuts(StdOut, IDS_ACCOUNTS_HELP_3);
29 ConResPuts(StdOut, IDS_ACCOUNTS_HELP_4);
30 ConResPuts(StdOut, IDS_ACCOUNTS_HELP_5);
31 ConResPuts(StdOut, IDS_ACCOUNTS_HELP_6);
32 ConResPuts(StdOut, IDS_ACCOUNTS_HELP_7);
33 ConResPuts(StdOut, IDS_ACCOUNTS_HELP_8);
34 ConResPuts(StdOut, IDS_ACCOUNTS_HELP_9);
35 ConResPuts(StdOut, IDS_ACCOUNTS_HELP_10);
36 ConResPuts(StdOut, IDS_GENERIC_PAGE);
37 return 0;
38 }
39
40 if (_wcsicmp(argv[2], L"COMPUTER") == 0)
41 {
42 ConResPuts(StdOut, IDS_COMPUTER_SYNTAX);
43 ConResPuts(StdOut, IDS_COMPUTER_HELP_1);
44 ConResPuts(StdOut, IDS_COMPUTER_HELP_2);
45 return 0;
46 }
47
48 if (_wcsicmp(argv[2], L"CONFIG") == 0)
49 {
50 if ((argc > 3) && (_wcsicmp(argv[3], L"SERVER") == 0))
51 {
52 ConResPuts(StdOut, IDS_CONFIG_SERVER_SYNTAX);
53 ConResPuts(StdOut, IDS_CONFIG_SERVER_HELP_1);
54 ConResPuts(StdOut, IDS_CONFIG_SERVER_HELP_2);
55 ConResPuts(StdOut, IDS_CONFIG_SERVER_HELP_3);
56 ConResPuts(StdOut, IDS_CONFIG_SERVER_HELP_4);
57 ConResPuts(StdOut, IDS_CONFIG_SERVER_HELP_5);
58 ConResPuts(StdOut, IDS_GENERIC_PAGE);
59 return 0;
60 }
61 else
62 {
63 ConResPuts(StdOut, IDS_CONFIG_SYNTAX);
64 ConResPuts(StdOut, IDS_CONFIG_HELP_1);
65 ConResPuts(StdOut, IDS_CONFIG_HELP_2);
66 ConResPuts(StdOut, IDS_GENERIC_PAGE);
67 return 0;
68 }
69 }
70
71 if (_wcsicmp(argv[2], L"CONTINUE") == 0)
72 {
73 ConResPuts(StdOut, IDS_CONTINUE_SYNTAX);
74 ConResPuts(StdOut, IDS_CONTINUE_HELP_1);
75 ConResPuts(StdOut, IDS_CONTINUE_HELP_2);
76 return 0;
77 }
78
79 if (_wcsicmp(argv[2], L"FILE") == 0)
80 {
81 ConResPuts(StdOut, IDS_FILE_SYNTAX);
82 ConResPuts(StdOut, IDS_FILE_HELP);
83 return 0;
84 }
85
86 if (_wcsicmp(argv[2], L"GROUP") == 0)
87 {
88 ConResPuts(StdOut, IDS_GROUP_SYNTAX);
89 ConResPuts(StdOut, IDS_GROUP_HELP);
90 return 0;
91 }
92
93 if (_wcsicmp(argv[2], L"HELPMSG") == 0)
94 {
95 ConResPuts(StdOut, IDS_HELPMSG_HELP);
96 return 0;
97 }
98
99 if (_wcsicmp(argv[2], L"LOCALGROUP") == 0)
100 {
101 ConResPuts(StdOut, IDS_LOCALGROUP_SYNTAX);
102 ConResPuts(StdOut, IDS_LOCALGROUP_HELP);
103 return 0;
104 }
105
106 if (_wcsicmp(argv[2], L"NAME") == 0)
107 {
108 ConResPuts(StdOut, IDS_NAME_HELP);
109 return 0;
110 }
111
112 if (_wcsicmp(argv[2], L"PAUSE") == 0)
113 {
114 ConResPuts(StdOut, IDS_PAUSE_HELP);
115 return 0;
116 }
117
118 if (_wcsicmp(argv[2], L"PRINT") == 0)
119 {
120 ConResPuts(StdOut, IDS_PRINT_HELP);
121 return 0;
122 }
123
124 if (_wcsicmp(argv[2], L"SEND") == 0)
125 {
126 ConResPuts(StdOut, IDS_SEND_HELP);
127 return 0;
128 }
129
130 if (_wcsicmp(argv[2], L"SESSION") == 0)
131 {
132 ConResPuts(StdOut, IDS_SESSION_HELP);
133 return 0;
134 }
135
136 if (_wcsicmp(argv[2], L"SHARE") == 0)
137 {
138 ConResPuts(StdOut, IDS_SHARE_HELP);
139 return 0;
140 }
141
142 if (_wcsicmp(argv[2], L"START") == 0)
143 {
144 ConResPuts(StdOut, IDS_START_HELP);
145 return 0;
146 }
147
148 if (_wcsicmp(argv[2], L"STATISTICS") == 0)
149 {
150 ConResPuts(StdOut, IDS_STATISTICS_HELP);
151 return 0;
152 }
153
154 if (_wcsicmp(argv[2], L"STOP") == 0)
155 {
156 ConResPuts(StdOut, IDS_STOP_HELP);
157 return 0;
158 }
159
160 if (_wcsicmp(argv[2], L"TIME") == 0)
161 {
162 ConResPuts(StdOut, IDS_TIME_HELP);
163 return 0;
164 }
165
166 if (_wcsicmp(argv[2], L"USE") == 0)
167 {
168 ConResPuts(StdOut, IDS_USE_HELP);
169 return 0;
170 }
171
172 if (_wcsicmp(argv[2], L"USER") == 0)
173 {
174 ConResPuts(StdOut, IDS_USER_HELP);
175 return 0;
176 }
177
178 if (_wcsicmp(argv[2], L"VIEW") == 0)
179 {
180 ConResPuts(StdOut, IDS_VIEW_HELP);
181 return 0;
182 }
183
184 #if 0
185 if (_wcsicmp(argv[2], L"SERVICES") == 0)
186 {
187 return 0;
188 }
189
190 if (_wcsicmp(argv[2], L"SYNTAX") == 0)
191 {
192 return 0;
193 }
194 #endif
195
196 ConResPuts(StdOut, IDS_HELP_SYNTAX);
197
198 return 0;
199 }
200