mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:23:01 +00:00
[DISKPART] Convert command help to messages and fix some texts
This commit is contained in:
parent
488643583d
commit
c287c08b27
18 changed files with 1879 additions and 2323 deletions
|
@ -78,3 +78,26 @@ RoundingDivide(
|
|||
{
|
||||
return (Dividend + Divisor / 2) / Divisor;
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
PrintMessageString(
|
||||
_In_ DWORD dwMessage)
|
||||
{
|
||||
PWSTR pBuffer;
|
||||
|
||||
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_HMODULE |
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||
NULL, //hModuleNetMsg,
|
||||
dwMessage,
|
||||
LANG_USER_DEFAULT,
|
||||
(LPWSTR)&pBuffer,
|
||||
0,
|
||||
NULL);
|
||||
if (pBuffer)
|
||||
{
|
||||
ConPuts(StdOut, pBuffer);
|
||||
LocalFree(pBuffer);
|
||||
pBuffer = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue