And if I want to make start when the computer switches on, how do I do it? I've read about the HKeY folder but I didn't really get it. How do you do it on Windows 7?is the method any different for Windows xp and vista?
on windows you can put it in startup folder, which is the simplest. there are other ways too like converting the program into services but which are complex.
windows.h is used if you want to program win32 applications. This header contains all the windows api's exist today. like you want to create your own text editor.. in fact every application running on windows actually uses windows api.
pick a book for windows programming, like charles petzold.
By owner I didn't mean the person that is meant to posses to folder. The term "Owner" has a very specific meaning in the context of Windows security. The 'Starup' folder, by default, is set to inherit ACL's from its parent directory. So if at any point in that tree you find your self with either the 'SeImpersonatePrivilege', 'seDebugPrivilege' or the 'SeTakeOwnershipPrivilege' token privilege then you are only a few steps away at the very most from obtaining full access. We can continue to talk about Windows security settings but I'd like to insert a shameless self plug at this point: http://www.cplusplus.com/articles/2ACRko23/ Important Note: This article gets a lot of flak because I flaked and mixed up the reference and pass by address operators through out the whole thing. So try ignore that part.