N
Nitin Ambupe
Guest
I have a ATL Service module which loads a DLL to interface with HW module. This DLL is not a driver but just a wrapper which in turn loads additional libraries.
This library which my service loads creates a log file at the executable directory and also accesses few configuration files from the same directory. The problem I have is - when I register my ATL Service module using "/Service" switch and start it from Windows Service Management Console, service successfully starts but DLL neither creates log file nor it can read configuration files.
But when I uninstall the service using "/UnRegServer" and just register the COM component using "/RegServer" and execute the exe directly, DLL creates log files and reads configuration files successfully,
Service Configuration -
1. Service is run under "LocalSystem" which I assume has the highest privileges.
2. Have provided read and write access to the folder where DLL is supposed to create log files/read config files.
What am I missing?
Continue reading...
This library which my service loads creates a log file at the executable directory and also accesses few configuration files from the same directory. The problem I have is - when I register my ATL Service module using "/Service" switch and start it from Windows Service Management Console, service successfully starts but DLL neither creates log file nor it can read configuration files.
But when I uninstall the service using "/UnRegServer" and just register the COM component using "/RegServer" and execute the exe directly, DLL creates log files and reads configuration files successfully,
Service Configuration -
1. Service is run under "LocalSystem" which I assume has the highest privileges.
2. Have provided read and write access to the folder where DLL is supposed to create log files/read config files.
What am I missing?
Continue reading...