Category : service

My code: char path [9] = "hwid.sys"; char name [5] = "hwid"; char name [5] = "hwid"; SC_HANDLE schSCManager = OpenSCManager( NULL, NULL, SC_MANAGER_ALL_ACCESS); SC_HANDLE result3 = CreateServiceA(schSCManager, name, name, SC_MANAGER_ALL_ACCESS, SERVICE_KERNEL_DRIVER, SERVICE_DEMAND_START, SERVICE_ERROR_CRITICAL, path, NULL, NULL, NULL, NULL, NULL); I think I am missing some data types in the code, I would really aprecciate ..

Read more

Because it’s not possible to use C:ProgramData hardlink and the environment variable in WinSW (https://github.com/winsw/winsw/issues/815), i made a symbolic link : mklink C:servicesDesktopInfo.exe C:ProgramDatachocolateylibdesktopinfotoolsDesktopInfo.exe for DesktopInfo (installed with Chocolatey). The log for this new service is 2021-04-24T17:08:06.380 DEBUG console – Starting WinSW in service mode. 2021-04-24T17:08:06.679 INFO console – Service ‘Service Desktop : Info (desktopinfo)’ ..

Read more

I’m trying to create a Windows Service in C# .NET, everything looks fine but when I install the service an exception raises, and I don’t know why this happen. The Exception is this: An exception occurred during the Install phase. System.IO.IOException: The process cannot access the file ‘C:Program FilesMyFirstServiceMyFirstService.InstallState’ because it is being used by ..

Read more