Solved

Another Registry Question

Posted on 1999-01-07
3
126 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

691 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