Re: How to get user's local setting folder
From: Viatcheslav V. Vassiliev (support_at_oledbdirect.com)
Date: 05/22/04
- Next message: René Allan Larsen: "Re: Looking for a GREP VCL (not EXE utility)"
- Previous message: Michael Elsdörfer: "Re: Looking for a GREP VCL (not EXE utility)"
- In reply to: Andrew Diabo: "Re: How to get user's local setting folder"
- Next in thread: Andrew Diabo: "Re: How to get user's local setting folder"
- Reply: Andrew Diabo: "Re: How to get user's local setting folder"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 22 May 2004 23:45:01 +0400
Look GetEnvironmentStrings() function in Win API or GetEnvironmentVars() in
JCL (JclSysInfo unit). Really it is a list of environment variables for
current process, it could be different from common list if environment
variables are specified in CreateProcess().
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"Andrew Diabo" <aadiabo@ix.netcom.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:40af7fb3@newsgroups.borland.com...
> Hi David,
>
> Thanks for the code snippet. I'll give it a try. How do one query a list
of
> environment variables in the system?
>
> Thanks
> Andrew
>
> "David Lewis" <davidl@ocuco.com> wrote in message
> news:40af093d@newsgroups.borland.com...
> > I don't know if this is exactly what you need, but you could try the
> > following. On Windows 2K it returns C:\Documents and Settings\User Name
> >
> > function GetProfilePath: String;
> > var
> > barray: array[0..MAX_PATH] of char;
> > begin
> > GetEnvironmentVariable(PChar('UserProfile'), @barray, MAX_PATH);
> > Result := StrPas(@barray);
> > end;
> >
> >
> > "Andrew Diabo" <aadiabo@ix.netcom.com> wrote in message
> > news:40aec8d2@newsgroups.borland.com...
> > > I would like to save my applications settings .ini file in the login
> > user's
> > > local setting folder. What is the Windows API to get that folder?
Thanks
> > for
> > > any help.
> > >
> > > Andrew
> > >
> > >
> >
> >
>
>
- Next message: René Allan Larsen: "Re: Looking for a GREP VCL (not EXE utility)"
- Previous message: Michael Elsdörfer: "Re: Looking for a GREP VCL (not EXE utility)"
- In reply to: Andrew Diabo: "Re: How to get user's local setting folder"
- Next in thread: Andrew Diabo: "Re: How to get user's local setting folder"
- Reply: Andrew Diabo: "Re: How to get user's local setting folder"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|