Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.08.22;
Скачать: CL | DM;

Вниз

Создание сервиса   Найти похожие ветки 

 
han_malign ©   (2004-07-07 17:02) [0]

Какого ..., когда делаю CreateService, с логином
   FSvcHandle := CreateService(FSCMHandle, PChar(ASvcName), PChar(ADisplayName),
     SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS or SERVICE_INTERACTIVE_PROCESS,
     SERVICE_AUTO_START, SERVICE_ERROR_NORMAL, PChar(ABinaryPathName),
     nil, nil, nil, "DOMAIN\User", "Password");

- эта зараза ругается "A parameter that was specified is invalid."???
Пользователь есть - на "The account name is invalid or does not exist." не ругается... Без логина тоже все Ob. (Права администратора)


 
clickmaker ©   (2004-07-07 17:39) [1]


> han_malign ©   (07.07.04 17:02)  

а если в форме user@domain ?


 
han_malign ©   (2004-07-07 17:57) [2]

lpServiceStartName

Points to a null-terminated string. If the service type is SERVICE_WIN32_OWN_PROCESS, this name is the account name in the form of "DomainName\Username", which the service process will be logged on as when it runs. If the account belongs to the built-in domain, ".\Username" can be specified. Services of type SERVICE_WIN32_SHARE_PROCESS are not allowed to specify an account other than LocalSystem. If NULL is specified, the service will be logged on as the "LocalSystem" account, in which case, the lpPassword parameter must be NULL.


Если домен\пользователь неправилно указать, то - "The account name is invalid or does not exist."


 
Cobalt ©   (2004-07-07 21:43) [3]

Попробуй опустить всякие флаги типа SERVICE_ALL_ACCESS в 0, может запашет?
Может, в статье комбинации какие запрещены?
Пути точно правильные?
Отключи оптимизацию...


 
Reindeer Moss Eater ©   (2004-07-08 09:02) [4]

Аккаунту разрешено входить в систему в качестве службы?


 
han_malign ©   (2004-07-08 11:02) [5]

>Аккаунту разрешено входить в систему в качестве службы?
права атминистратора


 
Reindeer Moss Eater ©   (2004-07-08 11:04) [6]

У администратора нет таких прав по умолчанию


 
han_malign ©   (2004-07-08 12:19) [7]

а ларчик просто открывался
If you specify either SERVICE_WIN32_OWN_PROCESS or SERVICE_WIN32_SHARE_PROCESS, and the service is running in the context of the LocalSystem account, you can also specify the following type.
SERVICE_INTERACTIVE_PROCESS  - The service can interact with the desktop.

- то есть если с логином - никаких SERVICE_INTERACTIVE_PROCESS



Страницы: 1 вся ветка

Текущий архив: 2004.08.22;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.049 c
14-1091367330
Кириешки
2004-08-01 17:35
2004.08.22
А что такое LOL ?


14-1091533035
}|{yk
2004-08-03 15:37
2004.08.22
4 уровневая архитектура???


4-1089358067
putrsa
2004-07-09 11:27
2004.08.22
работа с визуальными компонентами чужого приложения


14-1091606736
Igorek
2004-08-04 12:05
2004.08.22
Система реального времени


3-1091281147
Wolfram
2004-07-31 17:39
2004.08.22
Какие сложности могут возникнуть при работе с Power Builder 9.0