![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2005
Posts: 14
Rep Power: 0
![]() |
Your Applications add startup with this Code
![]()
#include <Registry.hpp>
TRegistry *R=new TRegistry;
R->RootKey=HKEY_CURRENT_USER;
R->OpenKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",false);
R->WriteString("Application Title",Application->ExeName);
R->Free();//Remove Startup Code
TRegistry *R=new TRegistry;
R->RootKey=HKEY_CURRENT_USER;
R->OpenKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",false);
R->DeleteValue("Application Title");
R->Free();Last edited by BlueNight; Nov 11th, 2005 at 5:25 PM. |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Maybe I'll give you a commission. I charge people money to get that shit out of their system's registry.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
WTF is a Registry.hpp file? Please try not to post crap here.
__________________
|
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4
![]() |
...and what's the problem???
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|