Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Another Registry Question

Posted on 1999-01-07
3
Medium Priority
?
128 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 100 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

610 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