Solved

Another Registry Question

Posted on 1999-01-07
3
124 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 Compile Compatibility Issue 4 116
Saving history changes to sub form 4 48
Added a column screws up code 5 63
MS SQL Update query with connected table data 3 41
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

830 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