[DISKPART] Convert command help to messages and fix some texts

This commit is contained in:
Eric Kohl 2022-05-30 01:09:08 +02:00
parent 488643583d
commit c287c08b27
18 changed files with 1879 additions and 2323 deletions

View file

@ -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;
}
}