Install Service as SERVICE_USER_SHARE_PROCESS in INF

I am trying to install a per-user service via driver INF. I set ServiceType to 0x60. But I faced error when installing it as below. I am wondering why configuring the servicetype to SERVICE_USER_SHARE_PROCESS needs privileges. And how can I solve this problem? Any comment is appreciated.


[TestSvc_Service_Inst]
Description = %TestSvc.SVCDESC%
DisplayName = %TestSvc.SVCNAME%
ServiceType = 0x00000060 ; SERVICE_USER_SHARE_PROCESS
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = "%13%\TestService.exe"


inf: {Add Service: TestSvc}
inf: Start Type = 3
inf: Service Type = 96
inf: Error Control = 1
inf: Image Path = %SystemRoot%\System32\DriverStore\FileRepository\drv.inf_amd64_0e3b1bd7fcb0f8af\TestService.exe
inf: Display Name = Test Service
inf: Description = Test Service
inf: Created new service 'TestSvc'.
!!! inf: Failed to update service required privileges. Error = 0x00000057
inf: {Add Service: exit(0x00000057)}
inf: {Configure Driver: exit(0x00000057)}
!!! sto: Failed to configure driver package. Error = 0x00000057
sto: {Configure Driver Package: exit(0x00000057)}
dvi: {Configure Device - exit(0x00000057)} 14:55:30.577
dvi: {Core Device Install - exit(0x00000057)} 14:55:30.577

SERVICE_USER_SHARE_PROCESS isn’t a valid service type. The underlying SCM API that PNP is calling into won’t accept this service type and it’s returning ERROR_INVALID_PARAMETER.

what do you mean by a per-user service? By definition, service processes on Windows run regardless of however many users might be logged into the system.