mokum95
asked on
edit HKEY_CURRENT_USER registry from app running as a service
hi,
re ; https://www.experts-exchange.com/questions/21091221/edit-regestry-from-app-running-as-service.html
EDDYKT's answer might be what i need :
-----
You can create another activeX exe to do the registry changes.
Call this activeX from your service
ALso make sure change this activeX exe to run as interactive user from the identity tab by
using dcomcnfg.exe
----
im feeling so dumb, ive never used active exe's
pls help me in de right direction, ive opened a new activex exe project, a class mod is shown, ive added the reg edit code, and in its sub main i call the reg change ?? is that correct ?
then, how do i call the activex from the service (sorry for these stupid questions, i really never had to use active x)
thx a bunch guys
cheers
sander
re ; https://www.experts-exchange.com/questions/21091221/edit-regestry-from-app-running-as-service.html
EDDYKT's answer might be what i need :
-----
You can create another activeX exe to do the registry changes.
Call this activeX from your service
ALso make sure change this activeX exe to run as interactive user from the identity tab by
using dcomcnfg.exe
----
im feeling so dumb, ive never used active exe's
pls help me in de right direction, ive opened a new activex exe project, a class mod is shown, ive added the reg edit code, and in its sub main i call the reg change ?? is that correct ?
then, how do i call the activex from the service (sorry for these stupid questions, i really never had to use active x)
thx a bunch guys
cheers
sander
ASKER
thanks M.
im now heading in the right direction,, looked for a few hours, seems i need to learn a lot more ! lol please any 1 else
got some tips i must be aware of, being new to active x...
thx a bunch
im now heading in the right direction,, looked for a few hours, seems i need to learn a lot more ! lol please any 1 else
got some tips i must be aware of, being new to active x...
thx a bunch
ASKER
im still struggeling :( :( why have i not gone to college and study more.. fool i am :D
gents please.. im stuck..
i created a active x exe. a cls file is shown, i added the reg change code, and added a private function regchange.. i updated dconcnfg, it shows
project1.class1 its identity is now interactive user..
then i wanted to test if it works.. created a new app just to test.. instead of calling it from the service..
:
Private Sub Form_Load()
Dim myobject As projectname.classname
Set myobject = New Project1.class1
Call Project1.regchange
Set myobject = Nothing
End Sub
(is this correct ?? )
when launched it says, user defined type not defined.. this usually refers to a reference not set... only i dont know which reference...
thnx a bunch
regards, sander
gents please.. im stuck..
i created a active x exe. a cls file is shown, i added the reg change code, and added a private function regchange.. i updated dconcnfg, it shows
project1.class1 its identity is now interactive user..
then i wanted to test if it works.. created a new app just to test.. instead of calling it from the service..
:
Private Sub Form_Load()
Dim myobject As projectname.classname
Set myobject = New Project1.class1
Call Project1.regchange
Set myobject = Nothing
End Sub
(is this correct ?? )
when launched it says, user defined type not defined.. this usually refers to a reference not set... only i dont know which reference...
thnx a bunch
regards, sander
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Dim MyObject as ProjectName.ClassName
Set MyObject = New ProjectName.ClassName
Call MyObject.RegChange
Set MyObject = Nothing