Baget
Baget

Reputation: 3346

DirectX access from Windows service

Can DirectX API be used from Windows Service running at Session 0? I know services can't display GUI. I would like to call APIs that not involved in GUI display. Will the API calls fail? Windows 8 and above are of interest.

Upvotes: 3

Views: 924

Answers (1)

Floris Velleman
Floris Velleman

Reputation: 4888

I am not quite sure on what you would like to use but it is possible to use the DirectX datatypes in a Windows Service. GUI calls as you have stated will not be displayed. Depending on what call you make(Example):

  • Drawing to the screen will fail
  • Saving objects of DirectX datatypes/using DirectX datatypes inside your service to interact with other variables you might will work.

Upvotes: 1

Related Questions