winapi - Create Process As User after loading user profile -
i have service runs system, want spawn new process in user ts session user privileges.
i'm calling logonuser, loaduserprofile, createenvironmentblock, createprocessasuser , spwan process in user ts session.
the process (cmd.exe) run in user ts session, when i'm trying run gui application following error message:
exception eaccessviolation in module ntdll.dll @ 00022272.
access violation @ address 77d22272 in module 'ntdll.dll'. write of address 0000000c.
have missed something?
any appreciated !
thanks, lior
look @ launching process in user’s session service. main problem should start process on other ts session. have switch current session respect of settokeninformation
, tokensessionid
. able have enable se_tcb_name
privilege.
moreover have change security descriptor of desktop , windows station objects respect of openwindowstation
, opendesktop
, setuserobjectsecurity
(see http://msdn.microsoft.com/en-us/library/ms681928.aspx, http://msdn.microsoft.com/en-us/library/ms687107.aspx , http://support.microsoft.com/kb/165194)
Comments
Post a Comment