Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a per user service on windows?

As per this link https://learn.microsoft.com/en-us/windows/application-management/per-user-services-in-windows windows 10 now supports per user services . But i could not find any documentation on how to create my own per user service. Is it possible to create per user services in windows?

like image 718
Gokul Avatar asked Nov 07 '22 12:11

Gokul


1 Answers

I have not tested this, but according to the docs it should be sufficient to specify either of the following in the dwServiceType parameter to CreateService:

  • SERVICE_USER_OWN_PROCESS (0x50)
  • SERVICE_USER_SHARE_PROCESS (0x60)

See my article Per-User Services in Windows: Info & Configuration for background information.

like image 86
Helge Klein Avatar answered Nov 15 '22 05:11

Helge Klein