Return Values from RegOpenKeyEx

Posted on 1998-06-18
Medium Priority
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 280 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

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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…
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 how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

600 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