2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS net command
7 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
14 INT
cmdHelpMsg(INT argc
, WCHAR
**argv
)
23 PrintResourceString(IDS_HELPMSG_SYNTAX
);
27 for (i
= 2; i
< argc
; i
++)
29 if (_wcsicmp(argv
[i
], L
"/help") == 0)
31 PrintResourceString(IDS_HELPMSG_HELP
);
36 errNum
= wcstol(argv
[2], &endptr
, 10);
39 PrintResourceString(IDS_HELPMSG_SYNTAX
);
43 /* Unicode printing is not supported in ReactOS yet */
44 if (FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER
| FORMAT_MESSAGE_FROM_SYSTEM
,
52 PrintToConsole(L
"\n%s\n", lpBuffer
);
57 PrintToConsole(L
"Unrecognized error code: %ld\n", errNum
);