开发者

How to write into registry using VC++ 2010?

开发者 https://www.devze.com 2022-12-30 04:26 出处:网络
HKEY CURRENT USER \\software \\microsoft\\ windowsNT \\CurrentVersion\\ AppCompatFlags \"application path\" = RUNASXP3

HKEY CURRENT USER \software \microsoft\ windowsNT \CurrentVersion\ AppCompatFlags "application path" = RUNASXP3

I want to create an application which runs in default XP mode on windows 7 when i run the application so, i want to write into the registry as in the link above.

I am building the application in VC++ 2010, i want to write into the above registry through the program, so that when i ru开发者_开发知识库n the program it runs in XP mode. How to do this..?


Have you had a look at google? It appears the search results cover your question quite well.

For instance:

  • Working with the Windows Registry in C++
  • Microsoft Visual C++ Tutorials - Keeping Values in the Registry
  • Editing Windows Registry - C++

You can also search on Stackoverflow.

0

精彩评论

暂无评论...
验证码 换一张
取 消