Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
1.3.3
-
None
-
None
-
java 19.0.2
prunsrv 1.3.3
Windows 10 19043.928
Description
Hi , I was trying to run a windows service under safe mode of windows. Unfortunately I got 1084 error. I added my java project as jnaReg.rar . I tried commenting out this part in my code but no avail:
```
// public static void registerHandler(){
// Winsvc.SERVICE_STATUS_HANDLE service_status_handle = Advapi32.INSTANCE.RegisterServiceCtrlHandlerEx("hvldlpxpa", new Winsvc.HandlerEx() {
// @Override
// public int callback(int i, int i1, Pointer pointer, Pointer pointer1) {
// System.out.println;
// if(i == 1)
// return 120;
// }
// }, Pointer.NULL);
// }
```
Using java 19, prunsrv 1.3.3 .
My typical register command is :
````
prunsrv.exe //IS/Test --DisplayName=xpa --Description=h --Startup=manual --Jvm="pathToJvmDll" --Classpath=C:\Users\bunsal\IdeaProjects\jnaReg\target\JNA-jar-with-dependencies.jar --StartClass=Main --StopClass=Main --StartMode=jvm --StopMode=jvm --StopMethod=stopService --StartMethod=main --LogLevel=Debug --ServiceUser=LocalSystem
````
(Looks like default service user is changed from localsystem to local service (compared to v1.1))
Added commons-daemon log, and video of nothing being changed on windows event viewer.
What should I do?