[NET] Move ACCOUNTS command syntax and help text into a message table.

This commit is contained in:
Eric Kohl 2018-12-23 16:47:16 +01:00
parent e16241255d
commit 7292af515d
17 changed files with 441 additions and 341 deletions

View file

@ -145,6 +145,30 @@ PrintErrorMessage(
}
VOID
PrintNetMessage(
DWORD dwMessage)
{
PWSTR pBuffer;
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_HMODULE |
FORMAT_MESSAGE_IGNORE_INSERTS,
GetModuleHandleW(NULL),
dwMessage,
LANG_USER_DEFAULT,
(LPWSTR)&pBuffer,
0,
NULL);
if (pBuffer)
{
ConPrintf(StdOut, L"%s\n", pBuffer);
LocalFree(pBuffer);
pBuffer = NULL;
}
}
VOID
ReadFromConsole(
LPWSTR lpInput,