Q: CreateProcessAsUser from just Username & SessionID? *:-S
Posted: Wed May 26, 2010 9:00 am
I have a PB app that gets called from a printer service account, as a [LOCAL SERVICE] user account. It is supposed to launch a program, say gsview.exe under the useraccount who gave the print job. The printer service sends only TWO PARAMETERS (username and session_id) and NO PASSWORD =( I am stuck now, not knowing how to use CreateProcessAsUser() just with these two parameters. The redmon documentation says it is possible to launch using CreateProcessAsUser() with just these two parameters sent by the printer service.
So, How do I obtain hToken from only [Username] and [SessionID] so I can pass it to CreateProcessAsUser() to successfully launch the second app (gsview.exe) to run under that account.
Original question at:
http://stackoverflow.com/questions/2907 ... -sessionid
Note:
1) The program is run by the printer service as [LOCAL SERVICE] account.
2) The first parameter Username (REDMON_USER), in effect, points to the user currently looking at the screen
So, How do I obtain hToken from only [Username] and [SessionID] so I can pass it to CreateProcessAsUser() to successfully launch the second app (gsview.exe) to run under that account.
Original question at:
http://stackoverflow.com/questions/2907 ... -sessionid
Note:
1) The program is run by the printer service as [LOCAL SERVICE] account.
2) The first parameter Username (REDMON_USER), in effect, points to the user currently looking at the screen