mirror of
https://github.com/reactos/reactos.git
synced 2025-05-24 03:24:45 +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");
|
PrintToConsole(L"\n");
|
||||||
PrintResourceString(IDS_LOCALGROUP_ALIASES, pServer->sv100_name);
|
PrintResourceString(IDS_LOCALGROUP_ALIASES, pServer->sv100_name);
|
||||||
PrintToConsole(L"\n\n");
|
PrintToConsole(L"\n\n");
|
||||||
PrintToConsole(L"------------------------------------------\n");
|
PrintPadding(L'-', 79);
|
||||||
|
PrintToConsole(L"\n");
|
||||||
|
|
||||||
NetApiBufferFree(pServer);
|
NetApiBufferFree(pServer);
|
||||||
|
|
||||||
|
@ -141,7 +142,8 @@ DisplayLocalGroup(LPWSTR lpGroupName)
|
||||||
PrintResourceString(IDS_LOCALGROUP_MEMBERS);
|
PrintResourceString(IDS_LOCALGROUP_MEMBERS);
|
||||||
PrintToConsole(L"\n\n");
|
PrintToConsole(L"\n\n");
|
||||||
|
|
||||||
PrintToConsole(L"------------------------------------------\n");
|
PrintPadding(L'-', 79);
|
||||||
|
PrintToConsole(L"\n");
|
||||||
|
|
||||||
for (i = 0; i < dwRead; i++)
|
for (i = 0; i < dwRead; i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,7 +40,8 @@ EnumerateUsers(VOID)
|
||||||
PrintToConsole(L"\n");
|
PrintToConsole(L"\n");
|
||||||
PrintResourceString(IDS_USER_ACCOUNTS, pServer->sv100_name);
|
PrintResourceString(IDS_USER_ACCOUNTS, pServer->sv100_name);
|
||||||
PrintToConsole(L"\n\n");
|
PrintToConsole(L"\n\n");
|
||||||
PrintToConsole(L"------------------------------------------\n");
|
PrintPadding(L'-', 79);
|
||||||
|
PrintToConsole(L"\n");
|
||||||
|
|
||||||
NetApiBufferFree(pServer);
|
NetApiBufferFree(pServer);
|
||||||
|
|
||||||
|
@ -263,7 +264,7 @@ DisplayUser(LPWSTR lpUserName)
|
||||||
for (i = 0; i < dwLocalGroupTotal; i++)
|
for (i = 0; i < dwLocalGroupTotal; i++)
|
||||||
{
|
{
|
||||||
if (i != 0)
|
if (i != 0)
|
||||||
PrintToConsole(L" ");
|
PrintPadding(L' ', nPaddedLength);
|
||||||
PrintToConsole(L"*%s\n", pLocalGroupInfo[i].lgrui0_name);
|
PrintToConsole(L"*%s\n", pLocalGroupInfo[i].lgrui0_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -278,7 +279,7 @@ DisplayUser(LPWSTR lpUserName)
|
||||||
for (i = 0; i < dwGroupTotal; i++)
|
for (i = 0; i < dwGroupTotal; i++)
|
||||||
{
|
{
|
||||||
if (i != 0)
|
if (i != 0)
|
||||||
PrintToConsole(L" ");
|
PrintPadding(L' ', nPaddedLength);
|
||||||
PrintToConsole(L"*%s\n", pGroupInfo[i].grui0_name);
|
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
|
VOID
|
||||||
PrintToConsole(
|
PrintToConsole(
|
||||||
LPWSTR lpFormat,
|
LPWSTR lpFormat,
|
||||||
|
|
|
@ -35,6 +35,11 @@ PrintPaddedResourceString(
|
||||||
INT resID,
|
INT resID,
|
||||||
INT nPaddedLength);
|
INT nPaddedLength);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
PrintPadding(
|
||||||
|
WCHAR chr,
|
||||||
|
INT nPaddedLength);
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
PrintToConsole(
|
PrintToConsole(
|
||||||
LPWSTR lpFormat,
|
LPWSTR lpFormat,
|
||||||
|
|
Loading…
Reference in a new issue