CUDA code in windows service on Windows 7
Hi,
I need to execute CUDA (NVIDIA) code in windows service on Windows 7. Due to 'Session 0 isolation' I create a process that actually executes CUDA code in Session 1, which is console session and always present regardless of whether there is a logged user
or not. It works if the process created runs under LocalSystem permissions or impersonated user of the process is interactively logged in. It does not work if I try to create a process with credentials of user that is not interactively logged in. I do call
UserLogon() before CreateProcessAsUser(). I can't tell the exact error and where it is thrown because it fails in 3rd party libraries I use. I need a certified Microsoft answer whether what I am looking for can be done or can not. If yes, what additional programmatic/configuration
steps I should take to make it work.
Thanks in advance,
Katrin
July 12th, 2011 5:16pm
This is a development question, no problem
your approach is incorrect, you need to develop a windows service to do what you want
Windows MVP, paid Remote Assistance is available for XP, Vista and Windows 7.
My page on Video Card Problems is now my most popular landing page. See my
gaming site for
game reviews etc.
Developer | Windows IT |
Chess |
Economics | Hardcore Games |
Vegan Advocate |
PC Reviews
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2011 3:24pm
According to Microsoft there is no access to the display devices in session 0 (session where all services run). My requirements are:
1. No logged on user is assumed.
2. CUDA code should be executed.
I found the flow explained in my question working except of what I asked (running under impersenation privileges). If you are aware of any other way that will satisfy both requirements, please let me know.
Thank you,
Katrin
July 13th, 2011 3:33pm