CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: RegQueryValueEx

  1. #1
    Join Date
    May 1999
    Posts
    92

    RegQueryValueEx

    I am trying to read information from the registry using [RegQueryValueEx]. I am getting error numbers, but I don't know what they mean how can I find out what they mean and what I am doing wrong?


  2. #2
    Guest

    Re: RegQueryValueEx

    I don't know what operating system you are using
    but if your RegOpenKeyEx returns non error
    All parameters most be fill for Windows 95 but not with NULL or "".


  3. #3
    Guest

    Re: RegQueryValueEx

    Same as de first reply, for the number error see "winerror.h"


  4. #4
    Join Date
    Apr 1999
    Posts
    5

    Re: RegQueryValueEx

    If you want to see the system message that corresponds to the return value, use the FormatMessage function. Make sure you use the FORMAT_MESSAGE_FROM_SYSTEM flag. This is a standard API call that is pretty useful if you need to display the same error message Windows would.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured