windows - CreateProcessWithUser fails to impersonate user with errors 87, 1349 -


on windows 2003 server, running service, createprocessasuser fails error 87, , error wlexecserver says fails impersonate user.

on windows 2003 server 64 bit, running service, createprocessasuser fails error 1349.

the token created using openprocess -> openprocesstoken(token_query, token_duplicate) -> duplicatetokenex (with grant_all, primarytoken, securityimpersonation).

on win7 , 2008 r2 works fine no problems.

if take token wtsqueryusertoken, works fine also.

anyone has idea why?

it seems same problem on windows xp: createprocessasuser fails error 233 (0xe9) if session id not 0 , if no user logged on. bug fixed on nt 6.0 , higher.

there workarounds may help: https://groups.google.com/d/msg/microsoft.public.win32.programmer.kernel/h72ej7imyne/zvgbe_avj24j https://github.com/zealotous/ultravnc/blob/master/winvnc/winvnc/service.cpp

take on createremotesessionprocess function.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -