Solved

Read the win95 dir from the registry

Posted on 1998-06-11
2
187 Views
Last Modified: 2012-05-07
how can i read the win95 dir from the registry ?
0
Comment
Question by:sbartok
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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 clear a vector as well as how to detect empty vectors in C++.

626 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