LuckyDuck528
Programmer
Hello,
First off if there is a better place for this question like maybe in the winserver 2003 forum let me know...
I'm trying to run my .exe and somethings not working right.. I'believe I've narrowed the problem down to this: I'm trying to use the regobj.dll so that I don't have to use the windows API, not becasue I don't want to but because that would require rewriting this program that I didn't create but rather am just modifying to go from an NT box to Server2003.
So i have this line of code that reads:
Normally I would expect the value of objRegRootKey to be HKEY_LOCAL_MACHINE\SYSTEM\etc...
instead, my output says that the value is only the word "Parameters"
Any ideas on what might be going wrong and I how could fix it?
Thank you in advance for your time. Your help is greatly appreciated!
sincerly,
LuckyDuck
First off if there is a better place for this question like maybe in the winserver 2003 forum let me know...
I'm trying to run my .exe and somethings not working right.. I'believe I've narrowed the problem down to this: I'm trying to use the regobj.dll so that I don't have to use the windows API, not becasue I don't want to but because that would require rewriting this program that I didn't create but rather am just modifying to go from an NT box to Server2003.
So i have this line of code that reads:
Code:
Set objRemoteRegistry = RemoteRegistry(strServerName)
Set objRegRootKey = objRemoteRegistry.RegKeyFromString("\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\" & Services.strName(intServiceCount) & "\Parameters")
'debugging line
Open strLogFile For Append As #20
Print #20, objRegRootKey
Close
Normally I would expect the value of objRegRootKey to be HKEY_LOCAL_MACHINE\SYSTEM\etc...
instead, my output says that the value is only the word "Parameters"
Any ideas on what might be going wrong and I how could fix it?
Thank you in advance for your time. Your help is greatly appreciated!
sincerly,
LuckyDuck