ReactOS 0.4.16-dev-297-gc569aee
cmdHelp.c File Reference
#include "net.h"
Include dependency graph for cmdHelp.c:

Go to the source code of this file.

Functions

INT cmdHelp (INT argc, WCHAR **argv)
 
INT cmdSyntax (INT argc, WCHAR **argv)
 

Function Documentation

◆ cmdHelp()

INT cmdHelp ( INT  argc,
WCHAR **  argv 
)

Definition at line 12 of file cmdHelp.c.

13{
15 ConPuts(StdOut, L"\n");
16
17 if (argc != 3)
18 {
19 PrintNetMessage(MSG_HELP_SYNTAX);
20 PrintNetMessage(MSG_HELP_HELP);
21 return 0;
22 }
23
24 if (_wcsicmp(argv[2], L"ACCOUNTS") == 0)
25 {
26 PrintNetMessage(MSG_ACCOUNTS_SYNTAX);
27 PrintNetMessage(MSG_ACCOUNTS_HELP);
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 return 0;
45 }
46 else
47 {
48 PrintNetMessage(MSG_CONFIG_SYNTAX);
49 PrintNetMessage(MSG_CONFIG_HELP);
50 return 0;
51 }
52 }
53
54 if (_wcsicmp(argv[2], L"CONTINUE") == 0)
55 {
56 PrintNetMessage(MSG_CONTINUE_SYNTAX);
57 PrintNetMessage(MSG_CONTINUE_HELP);
58 return 0;
59 }
60
61 if (_wcsicmp(argv[2], L"FILE") == 0)
62 {
63 PrintNetMessage(MSG_FILE_SYNTAX);
64 PrintNetMessage(MSG_FILE_HELP);
65 return 0;
66 }
67
68 if (_wcsicmp(argv[2], L"GROUP") == 0)
69 {
70 PrintNetMessage(MSG_GROUP_SYNTAX);
71 PrintNetMessage(MSG_GROUP_HELP);
72 return 0;
73 }
74
75 if (_wcsicmp(argv[2], L"HELPMSG") == 0)
76 {
77 PrintNetMessage(MSG_HELPMSG_SYNTAX);
78 PrintNetMessage(MSG_HELPMSG_HELP);
79 return 0;
80 }
81
82 if (_wcsicmp(argv[2], L"LOCALGROUP") == 0)
83 {
84 PrintNetMessage(MSG_LOCALGROUP_SYNTAX);
85 PrintNetMessage(MSG_LOCALGROUP_HELP);
86 return 0;
87 }
88
89 if (_wcsicmp(argv[2], L"PAUSE") == 0)
90 {
91 PrintNetMessage(MSG_PAUSE_SYNTAX);
92 PrintNetMessage(MSG_PAUSE_HELP);
93 return 0;
94 }
95
96 if (_wcsicmp(argv[2], L"SESSION") == 0)
97 {
98 PrintNetMessage(MSG_SESSION_SYNTAX);
99 PrintNetMessage(MSG_SESSION_HELP);
100 return 0;
101 }
102
103 if (_wcsicmp(argv[2], L"SHARE") == 0)
104 {
105 PrintNetMessage(MSG_SHARE_SYNTAX);
106 PrintNetMessage(MSG_SHARE_HELP);
107 return 0;
108 }
109
110 if (_wcsicmp(argv[2], L"START") == 0)
111 {
112 PrintNetMessage(MSG_START_SYNTAX);
113 PrintNetMessage(MSG_START_HELP);
114 return 0;
115 }
116
117 if (_wcsicmp(argv[2], L"STATISTICS") == 0)
118 {
119 PrintNetMessage(MSG_STATISTICS_SYNTAX);
120 PrintNetMessage(MSG_STATISTICS_HELP);
121 return 0;
122 }
123
124 if (_wcsicmp(argv[2], L"STOP") == 0)
125 {
126 PrintNetMessage(MSG_STOP_SYNTAX);
127 PrintNetMessage(MSG_STOP_HELP);
128 return 0;
129 }
130
131 if (_wcsicmp(argv[2], L"TIME") == 0)
132 {
133 PrintNetMessage(MSG_TIME_SYNTAX);
134 PrintNetMessage(MSG_TIME_HELP);
135 return 0;
136 }
137
138 if (_wcsicmp(argv[2], L"USE") == 0)
139 {
140 PrintNetMessage(MSG_USE_SYNTAX);
141 PrintNetMessage(MSG_USE_HELP);
142 return 0;
143 }
144
145 if (_wcsicmp(argv[2], L"USER") == 0)
146 {
147 PrintNetMessage(MSG_USER_SYNTAX);
148 PrintNetMessage(MSG_USER_HELP);
149 return 0;
150 }
151
152 if (_wcsicmp(argv[2], L"VIEW") == 0)
153 {
154 PrintNetMessage(MSG_VIEW_SYNTAX);
155 PrintNetMessage(MSG_VIEW_HELP);
156 return 0;
157 }
158
159#if 0
160 if (_wcsicmp(argv[2], L"SERVICES") == 0)
161 {
162 return 0;
163 }
164#endif
165
166 if (_wcsicmp(argv[2], L"SYNTAX") == 0)
167 {
168 PrintNetMessage(MSG_SYNTAX_HELP);
169 return 0;
170 }
171
172 PrintNetMessage(MSG_HELP_SYNTAX);
173 PrintNetMessage(MSG_HELP_HELP);
174
175 return 0;
176}
static int argc
Definition: ServiceArgs.c:12
void ConPuts(FILE *fp, LPCWSTR psz)
Definition: fc.c:16
#define StdOut
Definition: fc.c:14
VOID PrintNetMessage(DWORD dwMessage)
Definition: main.c:239
VOID PrintMessageString(DWORD dwMessage)
Definition: main.c:120
#define argv
Definition: mplay32.c:18
#define L(x)
Definition: ntvdm.h:50
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)

◆ cmdSyntax()

INT cmdSyntax ( INT  argc,
WCHAR **  argv 
)

Definition at line 180 of file cmdHelp.c.

181{
182 PrintMessageString(4381);
183 ConPuts(StdOut, L"\n");
184 PrintNetMessage(MSG_SYNTAX_HELP);
185 return 0;
186}