1

I am looking for example code and API to log a user on and create a session and desktop for Windows 7.

I need do this from a non-interactive process running as a service.

sylvanaar
  • 8,096
  • 37
  • 59
kevinwaite
  • 613
  • 1
  • 8
  • 20

1 Answers1

0

Not sure what you are trying to archive, but if you just want a new session and its desktop, check the LogonUser function sample. http://msdn.microsoft.com/en-us/library/aa379608(VS.85).aspx.

If you are trying to do graphics, check Windows 2008 RenderFarm Service: CreateProcessAsUser "Session 0 Isolation" and OpenGL

Community
  • 1
  • 1
Sheng Jiang 蒋晟
  • 15,125
  • 2
  • 28
  • 46