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>
13 int cmdHelpMsg(int argc
, wchar_t *argv
[])
21 puts("Usage: NET HELPMSG <Error Code>");
24 errNum
= wcstol(argv
[2], &endptr
, 10);
27 puts("Usage: NET HELPMSG <Error Code>");
31 /* Unicode printing is not supported in ReactOS yet */
32 if(FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER
| FORMAT_MESSAGE_FROM_SYSTEM
,
40 printf("\n%s\n", lpBuffer
);
43 else printf("Unrecognized error code: %ld\n", errNum
);