Re[2]: CreateProcessWithLogonW
От: rmars  
Дата: 14.11.03 14:59
Оценка:
Здравствуйте, Valerio, Вы писали:

V>попробуйте указать явно в качестве десктопа в STARTUPINFO

V>
V>_T("WinSta0\Default")
V>


К сожалению, тогда нужно самому добавлять права доступа к десктопу и станции:

For CreateProcessWithLogonW, if this member is NULL or an empty string, the new process inherits the desktop and window station of its parent process. CreateProcessWithLogonW adds permission for the specified user account to the inherited window station and desktop. Otherwise, if this member specifies a desktop, it is the responsibility of the application to add permission for the specified user account to the specified window station and desktop.


Хотя при запуске из сервиса с описанным выше наследованием десктопа и станции тоже не все ясно...
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.