29 long err = secu.SetPrivilegeOnUser(
"", user,
"SeServiceLogonRight",
true);
32 out.log(astring(astring::SPRINTF,
"There was a problem giving "
33 "\"%s\" the \"Logon as a Service\" right:\r\n%s", user,
34 critical_events::system_error_text(err).s()));
45 int main(
int argc,
char *argv[])
49 out.log(filename(argv[0]).rootname() +
" usage:\n\
50 The first parameter must be a user name that will be given the\n\
51 \"login as a service\" access rights.\n");
56 out.log(astring(
"Success giving \"") + argv[1] +
"\" the 'login as service' rights.");
58 out.log(astring(
"Failed in giving \"") + argv[1] +
"\" the 'login as service' rights!");
62 #ifdef __BUILD_STATIC_APPLICATION__
64 #include <basis/byte_array.cpp>
65 #include <basis/callstack_tracker.cpp>
67 #include <basis/definitions.cpp>
68 #include <basis/earth_time.cpp>
71 #include <basis/log_base.cpp>
72 #include <basis/memory_checker.cpp>
75 #include <basis/outcome.cpp>
76 #include <basis/packable.cpp>
77 #include <basis/portable.cpp>
78 #include <basis/trap_new.addin>
79 #include <basis/untrap_new.addin>
80 #include <basis/utility.cpp>
81 #include <basis/version_record.cpp>
83 #include <structures/byte_hasher.cpp>
84 #include <structures/configurator.cpp>
93 #include <structures/table_configurator.cpp>
96 #include <loggers/locked_logger.cpp>
97 #include <loggers/null_logger.cpp>
101 #include <opsystem/critical_events.cpp>
105 #include <opsystem/ini_parser.cpp>
107 #include <application/rendezvous.cpp>
int main(int argc, char *argv[])
bool run_as_service(char *user, log_base &out)