int ValidateLogonSIDAction::ExecuteAction(const Argz* argz, const CreateServiceSettings* settings, const ServiceTaskSettings* taskSettings) { if (settings->runAsSystem()) { LOG.LogError(L"Username and password must be specified"); return 1; } DumpSIDCommand cmd(settings); return static_cast<Command*>(&cmd)->executeCommand(); }