Thursday, June 2, 2011

How to make modification in registry using C language?

for eg. to make a exe file run at system startup. to change the icon of an application . I dont know more about regedit. So if know anything please answer me.How to make modification in registry using C language?
Um, forgive my dumb question, but have you downloaded the Platform SDK from Microsoft's website? You'll need it because it has a reference for all of the main Windows functions.



Look up the RegOpenKeyEx() function and it's related functions. There should be some sample code provided in the reference guide too.

If you want to run a program when Windows starts up, you put a file name in the

HKEY_LOCAL_MACHINE|Software|Microsoft|? register key.



Regedit is a registry editor that allows you to manually edit registry keys. Regedit can also export or import registry entries.



By the way, another way to get a program to run when Windows starts is to copy the program file (or create and copy a short-cut to the program) and put it in your 'startup' folder.How to make modification in registry using C language?
You can also get API documentation for these functions as you need it from the URL below.

No comments:

Post a Comment