mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
[NET]
Replace remaining hard coded 'padding' strings. svn path=/trunk/; revision=65418
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user