2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS net command
4 * FILE: base/applications/network/net/cmdHelp.c
7 * PROGRAMMERS: Magnus Olsen (greatlord@reactos.org)
12 INT
cmdHelp(INT argc
, WCHAR
**argv
)
14 ConResPuts(StdOut
, IDS_GENERIC_SYNTAX
);
19 ConResPuts(StdOut, IDS_HELP_SYNTAX);
23 if (_wcsicmp(argv
[2], L
"ACCOUNTS") == 0)
25 PrintNetMessage(MSG_ACCOUNTS_SYNTAX
);
26 PrintNetMessage(MSG_ACCOUNTS_HELP
);
27 ConResPuts(StdOut
, IDS_GENERIC_PAGE
);
31 if (_wcsicmp(argv
[2], L
"COMPUTER") == 0)
33 PrintNetMessage(MSG_COMPUTER_SYNTAX
);
34 PrintNetMessage(MSG_COMPUTER_HELP
);
38 if (_wcsicmp(argv
[2], L
"CONFIG") == 0)
40 if ((argc
> 3) && (_wcsicmp(argv
[3], L
"SERVER") == 0))
42 PrintNetMessage(MSG_CONFIG_SERVER_SYNTAX
);
43 PrintNetMessage(MSG_CONFIG_SERVER_HELP
);
44 ConResPuts(StdOut
, IDS_GENERIC_PAGE
);
49 PrintNetMessage(MSG_CONFIG_SYNTAX
);
50 PrintNetMessage(MSG_CONFIG_HELP
);
51 ConResPuts(StdOut
, IDS_GENERIC_PAGE
);
56 if (_wcsicmp(argv
[2], L
"CONTINUE") == 0)
58 PrintNetMessage(MSG_CONTINUE_SYNTAX
);
59 PrintNetMessage(MSG_CONTINUE_HELP
);
63 if (_wcsicmp(argv
[2], L
"FILE") == 0)
65 PrintNetMessage(MSG_FILE_SYNTAX
);
66 PrintNetMessage(MSG_FILE_HELP
);
70 if (_wcsicmp(argv
[2], L
"GROUP") == 0)
72 PrintNetMessage(MSG_GROUP_SYNTAX
);
73 PrintNetMessage(MSG_GROUP_HELP
);
74 ConResPuts(StdOut
, IDS_GENERIC_PAGE
);
78 if (_wcsicmp(argv
[2], L
"HELPMSG") == 0)
80 PrintNetMessage(MSG_HELPMSG_SYNTAX
);
81 PrintNetMessage(MSG_HELPMSG_HELP
);
85 if (_wcsicmp(argv
[2], L
"LOCALGROUP") == 0)
87 PrintNetMessage(MSG_LOCALGROUP_SYNTAX
);
88 PrintNetMessage(MSG_LOCALGROUP_HELP
);
89 ConResPuts(StdOut
, IDS_GENERIC_PAGE
);
93 if (_wcsicmp(argv
[2], L
"NAME") == 0)
95 PrintNetMessage(MSG_NAME_SYNTAX
);
96 PrintNetMessage(MSG_NAME_HELP
);
100 if (_wcsicmp(argv
[2], L
"PAUSE") == 0)
102 PrintNetMessage(MSG_PAUSE_SYNTAX
);
103 PrintNetMessage(MSG_PAUSE_HELP
);
107 if (_wcsicmp(argv
[2], L
"PRINT") == 0)
109 PrintNetMessage(MSG_PRINT_SYNTAX
);
110 PrintNetMessage(MSG_PRINT_HELP
);
114 if (_wcsicmp(argv
[2], L
"SEND") == 0)
116 PrintNetMessage(MSG_SEND_SYNTAX
);
117 PrintNetMessage(MSG_SEND_HELP
);
121 if (_wcsicmp(argv
[2], L
"SESSION") == 0)
123 PrintNetMessage(MSG_SESSION_SYNTAX
);
124 PrintNetMessage(MSG_SESSION_HELP
);
128 if (_wcsicmp(argv
[2], L
"SHARE") == 0)
130 PrintNetMessage(MSG_SHARE_SYNTAX
);
131 PrintNetMessage(MSG_SHARE_HELP
);
135 if (_wcsicmp(argv
[2], L
"START") == 0)
137 PrintNetMessage(MSG_START_SYNTAX
);
138 PrintNetMessage(MSG_START_HELP
);
142 if (_wcsicmp(argv
[2], L
"STATISTICS") == 0)
144 PrintNetMessage(MSG_STATISTICS_SYNTAX
);
145 PrintNetMessage(MSG_STATISTICS_HELP
);
149 if (_wcsicmp(argv
[2], L
"STOP") == 0)
151 PrintNetMessage(MSG_STOP_SYNTAX
);
152 PrintNetMessage(MSG_STOP_HELP
);
156 if (_wcsicmp(argv
[2], L
"TIME") == 0)
158 PrintNetMessage(MSG_TIME_SYNTAX
);
159 PrintNetMessage(MSG_TIME_HELP
);
163 if (_wcsicmp(argv
[2], L
"USE") == 0)
165 PrintNetMessage(MSG_USE_SYNTAX
);
166 PrintNetMessage(MSG_USE_HELP
);
170 if (_wcsicmp(argv
[2], L
"USER") == 0)
172 PrintNetMessage(MSG_USER_SYNTAX
);
173 PrintNetMessage(MSG_USER_HELP
);
177 if (_wcsicmp(argv
[2], L
"VIEW") == 0)
179 PrintNetMessage(MSG_VIEW_SYNTAX
);
180 PrintNetMessage(MSG_VIEW_HELP
);
185 if (_wcsicmp(argv
[2], L
"SERVICES") == 0)
190 if (_wcsicmp(argv
[2], L
"SYNTAX") == 0)
196 PrintNetMessage(MSG_HELP_SYNTAX
);
197 PrintNetMessage(MSG_HELP_HELP
);