Skip to content
Tcl Source Code View Ticket
Login

View Ticket

broadcast registry env changes

Closed / Fixed625453ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-10-18 23:07:24
It was noted that just setting the environment vars in the 
registry won't propagate them to the current system (a 
relogon is required).  You must broadcase a 
WM_SETTINGCHANGE message, as noted in this 
howto and url:

http://support.microsoft.com/default.aspx?scid=KB;EN-
US;q104011

http://www.toflidium.com/citydesk/articles/docs/fog00000
00016.html

Attached is the 'registry broadcast' command 
implementation to do this, with docs and tests.
hobbsplain2002-10-19 06:07:24
File Added - 33419: regbroadcast.patch
hobbsplain2002-10-19 06:48:39
File Deleted - 33419: 



File Added - 33420: regbroadcast.patch.2

Logged In: YES 
user_id=72656

updated patch to remove unnecessary Tcl_WinUtfToTchar 
conversion.
hobbsplain2002-10-19 06:54:45
File Deleted - 33420: 



File Added - 33421: regbroadcast.patch.3

Logged In: YES 
user_id=72656

one more update with more/better tests.  tested on Win2K 
and Win98.
hobbsplain2002-10-19 07:00:28
Logged In: YES 
user_id=72656

Added for 8.4.1, up'ed reg to v1.1.
dkfplain2002-10-21 15:41:09
Logged In: YES 
user_id=79902

Should such a change (new script-level API) go into a patch
release?  Should such a change to something distributed as
part of the core go in without a TIP?  After all, the
registry package is listed as part of TIP#16 (unlike the
thread extension.)
hobbsplain2002-10-21 23:34:19
Logged In: YES 
user_id=72656

The sub-packages have a history of being rev'ed between 
releases.  This goes into the debate of the value of tieing the 
core to packages, which I won't do here.
Log in (anonymous is fine) to add a comment.

Attachments: