mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:43:19 +00:00
[NET] Move ACCOUNTS command syntax and help text into a message table.
This commit is contained in:
parent
e16241255d
commit
7292af515d
17 changed files with 441 additions and 341 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue