DLL problem 
Author Message
 DLL problem

I have a dll which accesses the registry for information. When i access thru
the ASP the values are not returned...
The DLL is getting all the right info and works, but using GetSetting
returns only default values not the actual registry value ?

Is there a security problem ????



Fri, 07 Feb 2003 03:00:00 GMT  
 DLL problem

How do i change the security for the dll to access the registry?


Quote:
> Yes. Windows NT Registry has security access control as folders/files do.



> > I have a dll which accesses the registry for information. When i access
> thru
> > the ASP the values are not returned...
> > The DLL is getting all the right info and works, but using GetSetting
> > returns only default values not the actual registry value ?

> > Is there a security problem ????



Fri, 07 Feb 2003 03:00:00 GMT  
 DLL problem
It's more than likely the fact that VB's GetSettings function looks under the

HKEY_CURRENT_USER\Software\VB and VBA Program Settings

key, which is generally meaningful only for an actual interactive logged on user, not the
IUSR_machinename account...

--
Michael Harris
Microsoft.MVP.Scripting
--

Quote:

> How do i change the security for the dll to access the registry?



> > Yes. Windows NT Registry has security access control as folders/files do.



> > > I have a dll which accesses the registry for information. When i access
> > thru
> > > the ASP the values are not returned...
> > > The DLL is getting all the right info and works, but using GetSetting
> > > returns only default values not the actual registry value ?

> > > Is there a security problem ????



Fri, 07 Feb 2003 03:00:00 GMT  
 DLL problem
I am using the registry API's now and still get the same result !
Any Ideas ?


Quote:
> It's more than likely the fact that VB's GetSettings function looks under
the

> HKEY_CURRENT_USER\Software\VB and VBA Program Settings

> key, which is generally meaningful only for an actual interactive logged
on user, not the
> IUSR_machinename account...

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --



Quote:
> > How do i change the security for the dll to access the registry?



> > > Yes. Windows NT Registry has security access control as folders/files
do.



> > > > I have a dll which accesses the registry for information. When i
access
> > > thru
> > > > the ASP the values are not returned...
> > > > The DLL is getting all the right info and works, but using
GetSetting
> > > > returns only default values not the actual registry value ?

> > > > Is there a security problem ????



Fri, 07 Feb 2003 03:00:00 GMT  
 DLL problem
What registry keys are you trying to read, in particular from what hive and under what account?

--
Michael Harris
Microsoft.MVP.Scripting
--

Quote:

> I am using the registry API's now and still get the same result !
> Any Ideas ?



> > It's more than likely the fact that VB's GetSettings function looks under
> the

> > HKEY_CURRENT_USER\Software\VB and VBA Program Settings

> > key, which is generally meaningful only for an actual interactive logged
> on user, not the
> > IUSR_machinename account...

> > --
> > Michael Harris
> > Microsoft.MVP.Scripting
> > --


> > > How do i change the security for the dll to access the registry?



> > > > Yes. Windows NT Registry has security access control as folders/files
> do.



> > > > > I have a dll which accesses the registry for information. When i
> access
> > > > thru
> > > > > the ASP the values are not returned...
> > > > > The DLL is getting all the right info and works, but using
> GetSetting
> > > > > returns only default values not the actual registry value ?

> > > > > Is there a security problem ????



Fri, 07 Feb 2003 03:00:00 GMT  
 DLL problem
You were right i moved the registry settings to HKEY_LOCAL_MACHINE and set
its permissions and it worked !

Thanks


Quote:
> What registry keys are you trying to read, in particular from what hive

and under what account?
Quote:

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --



Quote:
> > I am using the registry API's now and still get the same result !
> > Any Ideas ?



> > > It's more than likely the fact that VB's GetSettings function looks
under
> > the

> > > HKEY_CURRENT_USER\Software\VB and VBA Program Settings

> > > key, which is generally meaningful only for an actual interactive
logged
> > on user, not the
> > > IUSR_machinename account...

> > > --
> > > Michael Harris
> > > Microsoft.MVP.Scripting
> > > --


> > > > How do i change the security for the dll to access the registry?



> > > > > Yes. Windows NT Registry has security access control as
folders/files
> > do.



> > > > > > I have a dll which accesses the registry for information. When i
> > access
> > > > > thru
> > > > > > the ASP the values are not returned...
> > > > > > The DLL is getting all the right info and works, but using
> > GetSetting
> > > > > > returns only default values not the actual registry value ?

> > > > > > Is there a security problem ????



Fri, 07 Feb 2003 03:00:00 GMT  
 DLL problem
Yes. Windows NT Registry has security access control as folders/files do.


Quote:
> I have a dll which accesses the registry for information. When i access
thru
> the ASP the values are not returned...
> The DLL is getting all the right info and works, but using GetSetting
> returns only default values not the actual registry value ?

> Is there a security problem ????



Sat, 08 Feb 2003 04:46:27 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. OLEAUT32.DLL problem with MsVbVm50.Dll - Help!

2. VB application, DLL problem in dofferent PC , Need a DLL viewer

3. COM DLL calling external non-COM DLL problem.

4. Option Explicit and DLLs Problem, Masked Edit Problem

5. VB6 DLL problems

6. Help with DLL problem needed

7. VBA232.dll - problems

8. 97: VBA DLL problem

9. VBA332.dll problems HELP!

10. Access 2.0 DLL Problem

11. Comdlg32.dll Problem Under Win98

12. FM20.DLL problem in JAPANESE language

 

 
Powered by phpBB® Forum Software