Re: GetPrinter - проблема при работе в системной службе(серв
От: Аноним  
Дата: 28.06.06 17:02
Оценка:
Здравствуйте, timout, Вы писали:

T>GetPrinter (сетевой принтер) при работе в сервисе работает через раз.. Getlasterror возвращает — acces denied.

T>но когда таже процедура работает в обычном приложение проблем не возникает никаких.

T>В чем может быть загвостка?



So if the LocalSystem account is so powerful, why would you ever want a service to run under a specific user account? Yes, it's true, LocalSystem services are all-powerful on the local machine but, by default, they can't do a whole lot on the network. For example, a LocalSystem service can't access shared directories, files, or printers on another machine because the local machine's LocalSystem account can't be authenticated on the remote machine. With Windows 2000, Microsoft has improved this situation: when computers are part of a domain, you can now treat a machine like a user account and grant the machine its own permissions.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.