if (_wcsicmp(argv[i], L"/domain") == 0)
{
- printf("The /DOMAIN option is not supported yet!\n");
+ PrintToConsole(L"The /DOMAIN option is not supported yet!\n");
#if 0
Domain = TRUE;
#endif
value = wcstoul(p, &endptr, 10);
if (*endptr != 0)
{
- printf("You entered an invalid value for the /FORCELOGOFF option.\n");
+ PrintToConsole(L"You entered an invalid value for the /FORCELOGOFF option.\n");
result = 1;
goto done;
}
value = wcstoul(p, &endptr, 10);
if (*endptr != 0)
{
- printf("You entered an invalid value for the /MINPWLEN option.\n");
+ PrintToConsole(L"You entered an invalid value for the /MINPWLEN option.\n");
result = 1;
goto done;
}
value = wcstoul(p, &endptr, 10);
if (*endptr != 0)
{
- printf("You entered an invalid value for the /MAXPWAGE option.\n");
+ PrintToConsole(L"You entered an invalid value for the /MAXPWAGE option.\n");
result = 1;
goto done;
}
value = wcstoul(p, &endptr, 10);
if (*endptr != 0)
{
- printf("You entered an invalid value for the /MINPWAGE option.\n");
+ PrintToConsole(L"You entered an invalid value for the /MINPWAGE option.\n");
result = 1;
goto done;
}
value = wcstoul(p, &endptr, 10);
if (*endptr != 0)
{
- printf("You entered an invalid value for the /UNIQUEPW option.\n");
+ PrintToConsole(L"You entered an invalid value for the /UNIQUEPW option.\n");
result = 1;
goto done;
}
RtlGetNtProductType(&ProductType);
- printf("Force logoff after: ");
+ PrintToConsole(L"Force logoff after: ");
if (Info0->usrmod0_force_logoff == TIMEQ_FOREVER)
- printf("Never\n");
+ PrintToConsole(L"Never\n");
else
- printf("%lu seconds\n", Info0->usrmod0_force_logoff);
+ PrintToConsole(L"%lu seconds\n", Info0->usrmod0_force_logoff);
- printf("Minimum password age (in days): %lu\n", Info0->usrmod0_min_passwd_age / 86400);
- printf("Maximum password age (in days): %lu\n", Info0->usrmod0_max_passwd_age / 86400);
- printf("Minimum password length: %lu\n", Info0->usrmod0_min_passwd_len);
+ PrintToConsole(L"Minimum password age (in days): %lu\n", Info0->usrmod0_min_passwd_age / 86400);
+ PrintToConsole(L"Maximum password age (in days): %lu\n", Info0->usrmod0_max_passwd_age / 86400);
+ PrintToConsole(L"Minimum password length: %lu\n", Info0->usrmod0_min_passwd_len);
- printf("Password history length: ");
+ PrintToConsole(L"Password history length: ");
if (Info0->usrmod0_password_hist_len == 0)
- printf("None\n");
+ PrintToConsole(L"None\n");
else
- printf("%lu\n", Info0->usrmod0_password_hist_len);
+ PrintToConsole(L"%lu\n", Info0->usrmod0_password_hist_len);
- printf("Lockout threshold: ");
+ PrintToConsole(L"Lockout threshold: ");
if (Info3->usrmod3_lockout_threshold == 0)
- printf("Never\n");
+ PrintToConsole(L"Never\n");
else
- printf("%lu\n", Info3->usrmod3_lockout_threshold);
+ PrintToConsole(L"%lu\n", Info3->usrmod3_lockout_threshold);
- printf("Lockout duration (in minutes): %lu\n", Info3->usrmod3_lockout_duration / 60);
- printf("Lockout observation window (in minutes): %lu\n", Info3->usrmod3_lockout_observation_window / 60);
+ PrintToConsole(L"Lockout duration (in minutes): %lu\n", Info3->usrmod3_lockout_duration / 60);
+ PrintToConsole(L"Lockout observation window (in minutes): %lu\n", Info3->usrmod3_lockout_observation_window / 60);
- printf("Computer role: ");
+ PrintToConsole(L"Computer role: ");
if (Info1->usrmod1_role == UAS_ROLE_PRIMARY)
{
if (ProductType == NtProductLanManNt)
{
- printf("Primary server\n");
+ PrintToConsole(L"Primary server\n");
}
else if (ProductType == NtProductServer)
{
- printf("Standalone server\n");
+ PrintToConsole(L"Standalone server\n");
}
else
{
- printf("Workstation\n");
+ PrintToConsole(L"Workstation\n");
}
}
else
{
- printf("Backup server\n");
+ PrintToConsole(L"Backup server\n");
}
}