[NET] Add (incomplete) COMPUTER command and rename help.c to cmdHelp.c.
[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 /*
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 PrintNetMessage(MSG_ACCOUNTS_SYNTAX);
26 PrintNetMessage(MSG_ACCOUNTS_HELP);
27 ConResPuts(StdOut, IDS_GENERIC_PAGE);
28 return 0;
29 }
30
31 if (_wcsicmp(argv[2], L"COMPUTER") == 0)
32 {
33 PrintNetMessage(MSG_COMPUTER_SYNTAX);
34 PrintNetMessage(MSG_COMPUTER_HELP);
35 return 0;
36 }
37
38 if (_wcsicmp(argv[2], L"CONFIG") == 0)
39 {
40 if ((argc > 3) && (_wcsicmp(argv[3], L"SERVER") == 0))
41 {
42 PrintNetMessage(MSG_CONFIG_SERVER_SYNTAX);
43 PrintNetMessage(MSG_CONFIG_SERVER_HELP);
44 ConResPuts(StdOut, IDS_GENERIC_PAGE);
45 return 0;
46 }
47 else
48 {
49 PrintNetMessage(MSG_CONFIG_SYNTAX);
50 PrintNetMessage(MSG_CONFIG_HELP);
51 ConResPuts(StdOut, IDS_GENERIC_PAGE);
52 return 0;
53 }
54 }
55
56 if (_wcsicmp(argv[2], L"CONTINUE") == 0)
57 {
58 PrintNetMessage(MSG_CONTINUE_SYNTAX);
59 PrintNetMessage(MSG_CONTINUE_HELP);
60 return 0;
61 }
62
63 if (_wcsicmp(argv[2], L"FILE") == 0)
64 {
65 PrintNetMessage(MSG_FILE_SYNTAX);
66 PrintNetMessage(MSG_FILE_HELP);
67 return 0;
68 }
69
70 if (_wcsicmp(argv[2], L"GROUP") == 0)
71 {
72 PrintNetMessage(MSG_GROUP_SYNTAX);
73 PrintNetMessage(MSG_GROUP_HELP);
74 ConResPuts(StdOut, IDS_GENERIC_PAGE);
75 return 0;
76 }
77
78 if (_wcsicmp(argv[2], L"HELPMSG") == 0)
79 {
80 PrintNetMessage(MSG_HELPMSG_SYNTAX);
81 PrintNetMessage(MSG_HELPMSG_HELP);
82 return 0;
83 }
84
85 if (_wcsicmp(argv[2], L"LOCALGROUP") == 0)
86 {
87 PrintNetMessage(MSG_LOCALGROUP_SYNTAX);
88 PrintNetMessage(MSG_LOCALGROUP_HELP);
89 ConResPuts(StdOut, IDS_GENERIC_PAGE);
90 return 0;
91 }
92
93 if (_wcsicmp(argv[2], L"NAME") == 0)
94 {
95 PrintNetMessage(MSG_NAME_SYNTAX);
96 PrintNetMessage(MSG_NAME_HELP);
97 return 0;
98 }
99
100 if (_wcsicmp(argv[2], L"PAUSE") == 0)
101 {
102 PrintNetMessage(MSG_PAUSE_SYNTAX);
103 PrintNetMessage(MSG_PAUSE_HELP);
104 return 0;
105 }
106
107 if (_wcsicmp(argv[2], L"PRINT") == 0)
108 {
109 PrintNetMessage(MSG_PRINT_SYNTAX);
110 PrintNetMessage(MSG_PRINT_HELP);
111 return 0;
112 }
113
114 if (_wcsicmp(argv[2], L"SEND") == 0)
115 {
116 PrintNetMessage(MSG_SEND_SYNTAX);
117 PrintNetMessage(MSG_SEND_HELP);
118 return 0;
119 }
120
121 if (_wcsicmp(argv[2], L"SESSION") == 0)
122 {
123 PrintNetMessage(MSG_SESSION_SYNTAX);
124 PrintNetMessage(MSG_SESSION_HELP);
125 return 0;
126 }
127
128 if (_wcsicmp(argv[2], L"SHARE") == 0)
129 {
130 PrintNetMessage(MSG_SHARE_SYNTAX);
131 PrintNetMessage(MSG_SHARE_HELP);
132 return 0;
133 }
134
135 if (_wcsicmp(argv[2], L"START") == 0)
136 {
137 PrintNetMessage(MSG_START_SYNTAX);
138 PrintNetMessage(MSG_START_HELP);
139 return 0;
140 }
141
142 if (_wcsicmp(argv[2], L"STATISTICS") == 0)
143 {
144 PrintNetMessage(MSG_STATISTICS_SYNTAX);
145 PrintNetMessage(MSG_STATISTICS_HELP);
146 return 0;
147 }
148
149 if (_wcsicmp(argv[2], L"STOP") == 0)
150 {
151 PrintNetMessage(MSG_STOP_SYNTAX);
152 PrintNetMessage(MSG_STOP_HELP);
153 return 0;
154 }
155
156 if (_wcsicmp(argv[2], L"TIME") == 0)
157 {
158 PrintNetMessage(MSG_TIME_SYNTAX);
159 PrintNetMessage(MSG_TIME_HELP);
160 return 0;
161 }
162
163 if (_wcsicmp(argv[2], L"USE") == 0)
164 {
165 PrintNetMessage(MSG_USE_SYNTAX);
166 PrintNetMessage(MSG_USE_HELP);
167 return 0;
168 }
169
170 if (_wcsicmp(argv[2], L"USER") == 0)
171 {
172 PrintNetMessage(MSG_USER_SYNTAX);
173 PrintNetMessage(MSG_USER_HELP);
174 return 0;
175 }
176
177 if (_wcsicmp(argv[2], L"VIEW") == 0)
178 {
179 PrintNetMessage(MSG_VIEW_SYNTAX);
180 PrintNetMessage(MSG_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 PrintNetMessage(MSG_HELP_SYNTAX);
197 PrintNetMessage(MSG_HELP_HELP);
198
199 return 0;
200 }
201