Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing registry with vb6

Status
Not open for further replies.

ProBani

Programmer
Mar 21, 2005
48
YU
hello there,

I want to access registry and to assign permission to a domain user domain_name\start.sql into this regisrty keys:

1.HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer
2.HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\MSSQLServer
3.HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Perflib

-Read and write registry keys to and under abow paths.

can this be done through a vb application?

Thanks a lot,
probani.
 
Yes you need to add API functions for WriteIni and Readini, if you use the VBAPI viewer plug-in, and open the the default API think its WINAPI.
In here you should find calls similiarily named to what I have said, might actually be something like WritePrivateProfileString

Have a look at

It should show more info.

"I'm living so far beyond my income that we may almost be said to be living apart
 
WriteIni and ReadIni functions access initialisation files (.INI), NOT the registry.

If you want to access the registry then use the set of APIs that start with Reg. Look here for more detail and examples of use:

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
Essex Steam UK for steam enthusiasts
 
For an easier way:

<looks over shoulder for strongm>thread222-1052566</looks over shoulder for strongm>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top