mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 11:04:52 +00:00
[NET]
Replace remaining hard coded 'padding' strings. svn path=/trunk/; revision=65418
This commit is contained in:
parent
dfd58eda6d
commit
71b471e27e
4 changed files with 30 additions and 6 deletions
|
@ -41,7 +41,8 @@ EnumerateLocalGroups(VOID)
|
|||
PrintToConsole(L"\n");
|
||||
PrintResourceString(IDS_LOCALGROUP_ALIASES, pServer->sv100_name);
|
||||
PrintToConsole(L"\n\n");
|
||||
PrintToConsole(L"------------------------------------------\n");
|
||||
PrintPadding(L'-', 79);
|
||||
PrintToConsole(L"\n");
|
||||
|
||||
NetApiBufferFree(pServer);
|
||||
|
||||
|
@ -62,7 +63,7 @@ EnumerateLocalGroups(VOID)
|
|||
|
||||
for (i = 0; i < dwRead; i++)
|
||||
{
|
||||
if (pBuffer[i].lgrpi0_name)
|
||||
if (pBuffer[i].lgrpi0_name)
|
||||
PrintToConsole(L"*%s\n", pBuffer[i].lgrpi0_name);
|
||||
}
|
||||
|
||||
|
@ -141,7 +142,8 @@ DisplayLocalGroup(LPWSTR lpGroupName)
|
|||
PrintResourceString(IDS_LOCALGROUP_MEMBERS);
|
||||
PrintToConsole(L"\n\n");
|
||||
|
||||
PrintToConsole(L"------------------------------------------\n");
|
||||
PrintPadding(L'-', 79);
|
||||
PrintToConsole(L"\n");
|
||||
|
||||
for (i = 0; i < dwRead; i++)
|
||||
{
|
||||
|
|
|
@ -40,7 +40,8 @@ EnumerateUsers(VOID)
|
|||
PrintToConsole(L"\n");
|
||||
PrintResourceString(IDS_USER_ACCOUNTS, pServer->sv100_name);
|
||||
PrintToConsole(L"\n\n");
|
||||
PrintToConsole(L"------------------------------------------\n");
|
||||
PrintPadding(L'-', 79);
|
||||
PrintToConsole(L"\n");
|
||||
|
||||
NetApiBufferFree(pServer);
|
||||
|
||||
|
@ -263,7 +264,7 @@ DisplayUser(LPWSTR lpUserName)
|
|||
for (i = 0; i < dwLocalGroupTotal; i++)
|
||||
{
|
||||
if (i != 0)
|
||||
PrintToConsole(L" ");
|
||||
PrintPadding(L' ', nPaddedLength);
|
||||
PrintToConsole(L"*%s\n", pLocalGroupInfo[i].lgrui0_name);
|
||||
}
|
||||
}
|
||||
|
@ -278,7 +279,7 @@ DisplayUser(LPWSTR lpUserName)
|
|||
for (i = 0; i < dwGroupTotal; i++)
|
||||
{
|
||||
if (i != 0)
|
||||
PrintToConsole(L" ");
|
||||
PrintPadding(L' ', nPaddedLength);
|
||||
PrintToConsole(L"*%s\n", pGroupInfo[i].grui0_name);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,6 +84,22 @@ PrintPaddedResourceString(
|
|||
}
|
||||
|
||||
|
||||
VOID
|
||||
PrintPadding(
|
||||
WCHAR chr,
|
||||
INT nPaddedLength)
|
||||
{
|
||||
WCHAR szMsgBuffer[MAX_BUFFER_SIZE];
|
||||
INT i;
|
||||
|
||||
for (i = 0; i < nPaddedLength; i++)
|
||||
szMsgBuffer[i] = chr;
|
||||
szMsgBuffer[nPaddedLength] = UNICODE_NULL;
|
||||
|
||||
WriteToConsole(szMsgBuffer);
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
PrintToConsole(
|
||||
LPWSTR lpFormat,
|
||||
|
|
|
@ -35,6 +35,11 @@ PrintPaddedResourceString(
|
|||
INT resID,
|
||||
INT nPaddedLength);
|
||||
|
||||
VOID
|
||||
PrintPadding(
|
||||
WCHAR chr,
|
||||
INT nPaddedLength);
|
||||
|
||||
VOID
|
||||
PrintToConsole(
|
||||
LPWSTR lpFormat,
|
||||
|
|
Loading…
Reference in a new issue