943,896 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 4572
  • C++ RSS
Aug 16th, 2005
0

How to create a registry?

Expand Post »
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.
Similar Threads
Reputation Points: 11
Solved Threads: 0
Junior Poster
johnroach1985 is offline Offline
135 posts
since Apr 2004
Aug 16th, 2005
0

Re: How to create a registry?

you will probably get better response on the C/C++ board.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is online now Online
21,953 posts
since Aug 2005
Aug 16th, 2005
0

Re: How to create a registry?

Quote 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.
Reputation Points: 12
Solved Threads: 4
Junior Poster
Alvein is offline Offline
104 posts
since Jul 2005
Aug 17th, 2005
0

Re: How to create a registry?

Moved to C++
Team Colleague
Reputation Points: 96
Solved Threads: 21
The Geek Father
Zachery is offline Offline
781 posts
since Nov 2003
Aug 18th, 2005
0

Re: How to create a registry?

First of all I am sorry for posting at wrong place taught it was mostly about windows.And thanks to all i think i got it.
Reputation Points: 11
Solved Threads: 0
Junior Poster
johnroach1985 is offline Offline
135 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Deitel's "C++ How To Program" exercise 2.18
Next Thread in C++ Forum Timeline: libtiff





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC