•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 425,909 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,820 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 2000 | Replies: 4
![]() |
•
•
Join Date: Apr 2004
Location: in a galaxy far far away :)
Posts: 121
Reputation:
Rep Power: 5
Solved Threads: 0
Hi hope i am writing in right section of the forum trying to create a registry for my C program which has an .exe . want to work on windows start. The program is a kind of firewall program closes ports and opens them only if they are opened from inside. And I want this to work for windows xp so thats why i am writing here any help would be welcomed.
------
"A rational anachist believes that concepts such as 'state' and 'society' and 'government' have no existence save as physically exemplified in acts of self-responsible individuals.He believese that it is impossible to shift blame,share blame,distrubute blame.... as blame,guilt,responsibility are matters taking place inside human beings singly and nowhere else.But being rational,he knows that not all individuals hold his evaluations,so he tries to live perfectly in an imperfectworld...aware that his effort wil be less than perfect yet undismayed by self-knowledge of self-failure."
-Robert A. Heinlein
-----
John Roach
"A rational anachist believes that concepts such as 'state' and 'society' and 'government' have no existence save as physically exemplified in acts of self-responsible individuals.He believese that it is impossible to shift blame,share blame,distrubute blame.... as blame,guilt,responsibility are matters taking place inside human beings singly and nowhere else.But being rational,he knows that not all individuals hold his evaluations,so he tries to live perfectly in an imperfectworld...aware that his effort wil be less than perfect yet undismayed by self-knowledge of self-failure."
-Robert A. Heinlein
-----
John Roach
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,165
Reputation:
Rep Power: 38
Solved Threads: 930
•
•
•
•
Originally Posted by johnroach1985
Hi hope i am writing in right section of the forum trying to create a registry (key?) for my C program which has an .exe . want to work (launch?) on windows start. The program is a kind of firewall program closes ports and opens them only if they are opened from inside. And I want this to work for windows xp so thats why i am writing here any help would be welcomed.
If my assumptions are true, you will need to place your entry in:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
If you want it work only for you,
Or
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
If you want it works for everyone.
The Registry reference is here .
If the amount of info overwhelms you, please take into account you will only need three functions for your required task:
RegCreateKeyEx()
RegSetValueEx()
RegCloseKey()
Hope this helps.
Damn it, I still dream of her....:(
Moved to C++
Firefox: no, its not the end all solution, it has its own issues and in time it will be just as insecure as IE, when its hit Firefox 6, if it makes it that far. Oh, and AOL pays for it, incase you didn't know.
Microsoft & Windows: If you hate it so much, move to linux, or bsd, or anything else, stop complaning and move on.
Good starting places: Gentoo Novell SUSE Fedora Core Apple
Microsoft & Windows: If you hate it so much, move to linux, or bsd, or anything else, stop complaning and move on.
Good starting places: Gentoo Novell SUSE Fedora Core Apple
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- about registry key . . . (Visual Basic 4 / 5 / 6)
- IT is in my REGISTRY! (Viruses, Spyware and other Nasties)
- Need to know how to create a database that will generate a random number (Database Design)
- Probable Trojan Problem (Viruses, Spyware and other Nasties)
- IE will not open new URL from address bar (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: Deitel's "C++ How To Program" exercise 2.18
- Next Thread: libtiff



Linear Mode