Return Values from RegOpenKeyEx

Posted on 1998-06-18
Last Modified: 2008-02-01
I don't have much documentation so here's a question.  RegOpenKeyEx is returning an error code of 2.  What is it trying to tell me??
Question by:boyntont
  • 2

Accepted Solution

galkin earned 70 total points
ID: 1166158
from winerror.h
// MessageText:
//  The system cannot find the file specified.
#define ERROR_FILE_NOT_FOUND             2L


Author Comment

ID: 1166159
Adjusted points to 75

Author Comment

ID: 1166160
That's what I figured.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now