[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

header file for "GetProfilesDirectory" function?

Posted on 2000-01-11
6
Medium Priority
?
522 Views
Last Modified: 2013-12-03
URGENT
I need to know the location of the profiles directory in my program. The MSDN documentation says I have to use the function "GetProfilesDirectory" to achieve this. It also says that the header file and the import library for this function are "userenv.h" and "userenv.lib".

The problem is that I do not have these files on my hard disk nor on the Visual Studio CDs. Where can I find them?

I'm using NT4 SP5 and VC6 Enterprise Ed. SP3. I do have "userenv.dll" on my hard disk but prefer not to use "LoadLibrary".
0
Comment
Question by:searching
  • 4
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
NickRepin earned 400 total points
ID: 2341169
You have to download Platform SDK.
Look for it on MS site.
0
 
LVL 15

Expert Comment

by:NickRepin
ID: 2341171
Latest SDK is for Win2000 RC2, if I'm not wrong.
0
 
LVL 15

Expert Comment

by:NickRepin
ID: 2341228
There are userenv.h and userenv.lib files.

http://msdn.microsoft.com/downloads/sdks/platform/platform.asp
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 

Author Comment

by:searching
ID: 2341373
Is there another way to obtain these two files and not the whole Platform SDK? (Just because I have a quite slow connection here)
0
 

Author Comment

by:searching
ID: 2341433
Is there another way to obtain these two files and not the whole Platform SDK? (Just because I have a quite slow connection here)
0
 
LVL 15

Expert Comment

by:NickRepin
ID: 2343655
a)You can buy CD from Microsoft.
b)You can download only headers and library files
c)I can send you them by email, but it's better to get original ones.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.

612 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