Solved

Read the win95 dir from the registry

Posted on 1998-06-11
2
180 Views
Last Modified: 2012-05-07
how can i read the win95 dir from the registry ?
0
Comment
Question by:sbartok
2 Comments
 
LVL 6

Accepted Solution

by:
alamo earned 50 total points
ID: 1165683
I am not certain what you mean... if you mean "how can I find out what directory win95 is installed in?", then you don't need the registry to do it:

UINT GetWindowsDirectory(

    LPTSTR lpBuffer,      // address of buffer for Windows directory
    UINT uSize       // size of directory buffer
   );      

Returns the length of the string placed into the buffer.

You can get the System dirctory with GetSystemDirectory (same arguments).

Hope this is what you needed, good luck!
0
 
LVL 1

Author Comment

by:sbartok
ID: 1165684
Cooool, you probably found out, i'm a beginner... :-)

THANX
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

830 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