1 |
joko |
1.1 |
by Kenneth Ives: http://www.codetoad.com/vb_modify_registry.asp |
2 |
|
|
|
3 |
|
|
basRegistry.bas |
4 |
|
|
|
5 |
|
|
Updating the Windows registry. |
6 |
|
|
|
7 |
|
|
Updated the routine to return a TRUE or FALSE for a key delete. |
8 |
|
|
|
9 |
|
|
Perform the four basic functions on the Windows registry using |
10 |
|
|
string or numeric data. |
11 |
|
|
|
12 |
|
|
Add |
13 |
|
|
Change |
14 |
|
|
Delete |
15 |
|
|
Query |
16 |
|
|
|
17 |
|
|
Important: All Key data strings should be treated as case |
18 |
|
|
sensitive. Always backup your registry |
19 |
|
|
(System.dat and User.dat) before performing any |
20 |
|
|
type of updates. |
21 |
|
|
|
22 |
|
|
Software developers vary on where they want to update the |
23 |
|
|
registry with their particular information. The most common |
24 |
|
|
are in HKEY_lOCAL_MACHINE or HKEY_CURRENT_USER. |
25 |
|
|
|
26 |
|
|
This has been tested on Windows 95/98 and Windows NT 4.0. |
27 |
|
|
|
28 |
|
|
This was NT tested by Brett Gerhardi (Brett.Gerhardi@trinite.co.uk) |
29 |
|
|
He found that Windows NT requires that you delete each major |
30 |
|
|
key separately. Windows 95/98 can delete the top level key |
31 |
|
|
and all the sub level keys in one command. |
32 |
|
|
|
33 |
|
|
|
34 |
|
|
----------------------------------------------------------------- |
35 |
|
|
Written by Kenneth Ives kenaso@home.com |
36 |
|
|
|
37 |
|
|
All of my routines have been compiled with VB6 Service Pack 3. |
38 |
|
|
There are several locations on the web to obtain these |
39 |
|
|
modules. |
40 |
|
|
|
41 |
|
|
Whenever I use someone else's code, I will give them credit. |
42 |
|
|
This is my way of saying thank you for your efforts. I would |
43 |
|
|
appreciate the same consideration. |
44 |
|
|
|
45 |
|
|
Read all of the documentation within this program. It is very |
46 |
|
|
informative. Also, if you learn to document properly now, you |
47 |
|
|
will not be scratching your head next year trying to figure out |
48 |
|
|
exactly what you were programming today. Been there, done that. |
49 |
|
|
|
50 |
|
|
This software is FREEWARE. You may use it as you see fit for |
51 |
|
|
your own projects but you may not re-sell the original or the |
52 |
|
|
source code. If you redistribute it you must include this |
53 |
|
|
disclaimer and all original copyright notices. |
54 |
|
|
|
55 |
|
|
No warranty express or implied, is given as to the use of this |
56 |
|
|
program. Use at your own risk. |
57 |
|
|
|
58 |
|
|
If you have any suggestions or questions, I'd be happy to |
59 |
|
|
hear from you. |
60 |
|
|
----------------------------------------------------------------- |
61 |
|
|
|