| | |
How to create a registry?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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.
"By the data to date, there is only one animal in the Galaxy dangerous to man—man himself. So he must supply his own indispensable competition. He has no enemy to help him."
From Time Enough for Love by Robert A. Heinlein
From Time Enough for Love by Robert A. Heinlein
•
•
•
•
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.
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
![]() |
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
| Thread Tools | Search this Thread |
api array beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count data database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game getline google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text text-file tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






