Solved

Another Registry Question

Posted on 1999-01-07
3
122 Views
Last Modified: 2010-05-03
As per Spenner, I was successful in writing to the Registry through my visual basic program. Now I need to know how to remove what was written using my visual basic program. Here is what was written:SetKeyValue "SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices", _
                    "MyProgexe", "C:\it\Myprogexe\MyProg.exe", REG_SZ
Thank You in Advance...
0
Comment
Question by:sierra7
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 1454626
Declare Function RegDeleteKey& Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal _
hKey As Long, ByVal lpSubKey As String)

hKey is handle of open key or one of the standard key names
lpSubKey is the name of the subkey to delete
0
 
LVL 9

Expert Comment

by:cymbolic
ID: 1454627
For instance:
hKey might be: HKEY_LOCAL_MACHINE, and lpSubKey might be: "SYSTEM\CurrentControlSet\Control\Print\Printers"
0
 

Author Comment

by:sierra7
ID: 1454628
Cymbolic Sir: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices"MyProgexe", "C:\it\Myprogexe\MyProg.exe", REG_SZ is where my initial placement is. Could you send me an example of removing this information from the registry step by step for the complete idiot child ? (This is how I placed the information in there in the first place)Your humble student Thanks You
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now