Re: Amaya and winnt\profiles (fwd)

> We're using semi-hardcoded paths. We're using the Win32 GetUserName()
> and GetWindowsDirectory() system calls to build the path 
> to the profiles directory.

Please, use the following functions to obtain the user profile 


> To obtain the location of a particular user's directory, call the 
> GetUserProfileDirectory function.
> [...]
> To obtain the location of subdirectories of these directories, use 
> the SHGetFolderPath function.

One could use GetUserProfileDirectory adding "Application 
Data\Amaya" or just "amaya" which works for WinNT/2000/XP or better 
use SHGetSpecialFolderPath[1] with CSIDL_APPDATA parameter adding 
"Amaya" which should work for all Windows versions past Win95/NT4 
with IE 4 installed.



Received on Wednesday, 28 January 2004 05:48:08 UTC