Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Add Your Application in Registry Startup (http://www.programmingforums.org/showthread.php?t=6941)

BlueNight Nov 11th, 2005 6:10 PM

Add Your Application in Registry Startup
 
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 Application in startup

:

//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();


DaWei Nov 11th, 2005 6:46 PM

Maybe I'll give you a commission. I charge people money to get that shit out of their system's registry.

tempest Nov 11th, 2005 7:03 PM

WTF is a Registry.hpp file? Please try not to post crap here.

ivan Nov 12th, 2005 6:54 AM

...and what's the problem???


All times are GMT -5. The time now is 8:46 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC