   C++ code to add registry key
  hey guys, how can i write a regestriky key and  value from within my code, i dont mind a link where i can just copy paste similar code with minor modifications, im guessing im not the first person to do this.   
  Of course, you are not the first person to do this. Use the RegCreateKeyEx API to create a Registry key, and RegSetValueEx to set a value.I don't mind you looking up these functions and doing a little of the work yourself.  ;)   ;  i was being sarcastic lol, anyhoo thx for that.   