2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS net command
4 * FILE: base/applications/network/net/cmdHelpMsg.c
7 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
14 INT
cmdHelpMsg(INT argc
, WCHAR
**argv
)
20 PWSTR pInserts
[10] = {L
"***", L
"***", L
"***", L
"***",
21 L
"***", L
"***", L
"***", L
"***",
26 PrintMessageString(4381);
27 ConPuts(StdOut
, L
"\n");
28 PrintNetMessage(MSG_HELPMSG_SYNTAX
);
32 for (i
= 2; i
< argc
; i
++)
34 if (_wcsicmp(argv
[i
], L
"/help") == 0)
36 PrintMessageString(4381);
37 ConPuts(StdOut
, L
"\n");
38 PrintNetMessage(MSG_HELPMSG_SYNTAX
);
39 PrintNetMessage(MSG_HELPMSG_HELP
);
44 errNum
= wcstol(argv
[2], &endptr
, 10);
47 PrintMessageString(4381);
48 ConPuts(StdOut
, L
"\n");
49 PrintNetMessage(MSG_HELPMSG_SYNTAX
);
53 if (errNum
>= MIN_LANMAN_MESSAGE_ID
&& errNum
<= MAX_LANMAN_MESSAGE_ID
)
55 FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER
| FORMAT_MESSAGE_FROM_HMODULE
|
56 FORMAT_MESSAGE_ARGUMENT_ARRAY
,
65 ConPrintf(StdOut
, L
"\n%s\n", pBuffer
);
70 PrintErrorMessage(3871);
75 /* Retrieve the message string without appending extra newlines */
76 FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER
| FORMAT_MESSAGE_FROM_SYSTEM
|
77 FORMAT_MESSAGE_ARGUMENT_ARRAY
,
86 ConPrintf(StdOut
, L
"\n%s\n", pBuffer
);
91 PrintErrorMessage(3871);