Solved

Read the win95 dir from the registry

Posted on 1998-06-11
2
177 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

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

Title # Comments Views Activity
C++ - Convert a wString to char * 9 507
Would like to move button in a function 3 71
Beginner to Unreal Engine 4 5 57
Error creating a new C++ project in ,net 20 17
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…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

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

22 Experts available now in Live!

Get 1:1 Help Now