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 13th, 2011 12:07am

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 10:21pm

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 10:30pm

Hi, As this is a development issue, I would suggest you post at MSDN forum for further help, they are the best resource to help you on this issue: Windows: General Category Regards, Alex Zhao TechNet Subscriber Support in forum If you have any feedback on our support, please contact tnmff@microsoft.com.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
July 15th, 2011 6:19am

Thank you! I posted it on development forum.
July 15th, 2011 4:12pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics