Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Windows Registry

This topic is 5828 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone, I''ve been thinking of messing around with the window''s registry in my program, but I can''t for the life of me, figure it out. MSDNs information is functional and I have been able to open a registry key and write a value, but I can''t seem to read a value. Google turned up a good number of article on using the registry with Visual Basic, Delphi and MFC. I was wondering if anyone may know of an article using C.

Share this post

Link to post
Share on other sites
Well I don''t know of any articles... but to read values from the registry you use RegQueryValueEx

DWORD MyValue;
DWORD Size = sizeof(MyValue);

if(RegQueryValueEx(hKey, "MyRegistryValue", NULL, &Type, (BYTE *)&MyValue, &Size) != ERROR_SUCCESS)
//Error occured

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!