[THIN] Re: Developer Questions

  • From: "Tim Mangan" <tmangan@xxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Mon, 17 Feb 2003 11:30:11 -0500

A historical answer of what M$ recommended...
 - Win 3: Put it in system.ini

 - Win 3.1: Put it in a private ini file in the Windows root directory
(system.ini is too crowded)

 - Win 95: Put it in the registry. (Windows root directory is too crowded)
Usually meant HKRY_LOCAL_MACHINE.

 - Win NT: Put in HKEY_CURRENT_USER so we can have multiple logins.

 - Win XP/.NET: Stop putting into registry. Registry is too crowded (this
may be related to what M$ is doing with the registry on Server 2003).  If
the information is machine specific, place in a app specific data file in
the applications installed folder.  If the info is use specific put the file
into the user's profile area.

Either HKRY_CURRENT_USER in the registry, or a private data file is the best
method.

Note: A developer doing anything with files on a server needs to learn
about, and use the CSIDL.  There are quite a number of CSIDL which are,
basically, environment variables that point to the standard location on this
machine and this user.  For example, system root folder is CSIDL_WINDOWS.
CSIDL_PROGRAM_FILES is usually "C:\Program Files". The developer should
always query the value of the appropriate CSIDL rather than assume, for
example, Windows is even installed on C:. The Developer should query CSIDL
on MSDN for more info.

For user-specific application data, the CSIDL is CSIDL_LOCAL_APPDATA
(usually pointing to "C:\Documents and Settings\username\Local
Settings\Application Data") is a good place to create an app specific folder
to drop a file.  This area is normally included in the roaming profile.

tim
Timothy R. Mangan
Founder TMurgent Technologies
tmangan@xxxxxxxxxxxx
www.tmurgent.com
+1 781-492-0403

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On
Behalf Of Schneider, Chad M.
Sent: Monday, February 17, 2003 10:19 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Developer Questions



What is the Citrix recommended way of storing personal, unique application
settings per user when running a Citrix app? Is a .ini file in the Windows
folder the only way?
For example, these are for like dialogs that have a checkbox on them that
say something like a "Don't ask me this again" type of question. Where do I
store that they checked this?

Any answers to these would be helpful.


Chad M. Schneider
Technology Analyst II
Curwood, Inc.
Phone: 920-303-7609
Pager: 920-909-7609


*********************************************************
This Week's Sponsor - RTO Software / TScale
TScale increases terminal server capacity.
Get 30-40% more users per server to save $$$ and time.
Add users now! - not more servers. If you?re using Citrix,
you must learn about TScale!  Free 30-day eval:
http://www.rtosoft.com/Enter.asp?ID=79
**********************************************************

For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

*********************************************************
This Week's Sponsor - RTO Software / TScale
TScale increases terminal server capacity. 
Get 30-40% more users per server to save $$$ and time. 
Add users now! - not more servers. If you?re using Citrix, 
you must learn about TScale!  Free 30-day eval:
http://www.rtosoft.com/Enter.asp?ID=79
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: