I think I found what you want. Try GetUserProfileDirectory (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/policy/policy/getuserprofiledirectory.asp). Use the parameter hToken as NULL. Best, Maurício > Hello Mauricio, > > Right now we don't have any special code for Windows XP. The > default behavior for Windows NT is used throughout. That is, > the users Amaya directory is considered to be > > windowsdir\profiles\username\appname > > Where windowsdir is returned by the GetWindowSDirectory() WIN32 > system call. It is the syscall that is returning winnt and not something > hardcoded into Amaya. If you get it, maybe you presevered your Amaya > thot.rc file from a previous Windows (non XP)? Or maybe it's normal > it returns this value. > > Can you tell me what is convention for Windows XP (or quote > a reference). Also, if you know what is the syscall to get that > directory, that could save us time! > > Many thanks, > > -jose > > application directory preferences directory is stored in > On Wed, Jan 15, 2003 at 07:21:32AM -0500, Maur?cio wrote: > >> I have this problem too. It seems that Amaya looks for the >>configuration file in c:\winnt\profiles\user_name instead of the right >>directory (c:\Documents and Settings\user_name). I don't remember what >>is the right way to get the correct profiles directory under windows, >>but I remember there's some function that do that. > > >Received on Tuesday, 21 January 2003 07:04:23 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 20 September 2007 14:24:33 GMT