NT Service HELL With registry access
-
Hi Everyone, i reached the end of my rope. i'm trying to read the local registry, so i can retrieve a value from it, in HKEY_CURRENT_USER. All the Registry samples on CP work in the NT service BUT only with HKEY_LOCAL_MACHINE. why can i not read from HKEY_CURRENT_USER from an NT Service ?, what am i doing wrong :(( Thanks Peter
-
Hi Everyone, i reached the end of my rope. i'm trying to read the local registry, so i can retrieve a value from it, in HKEY_CURRENT_USER. All the Registry samples on CP work in the NT service BUT only with HKEY_LOCAL_MACHINE. why can i not read from HKEY_CURRENT_USER from an NT Service ?, what am i doing wrong :(( Thanks Peter
Well, as standard a service log on as "system", and because of that there is no "current user" so it cannot read in HKEY_CURRENT_USER. You have to change the service so it logs on as a user, then I think it should work. - Anders