delorie.com/archives/browse.cgi | search |
Chris Faylor wrote: > > On Mon, Jun 19, 2000 at 11:08:45AM -0700, Earnie Boyd wrote: > >--- Corinna Vinschen <corinna AT vinschen DOT de> wrote: > >>Disadvantage: Changes made to the users registry hive in a telnet/ssh > >>session are lost on reboot because there's currently no code which > >>would be able to save the hive back again. > > > >Would it be possible for the programs changing the registry hive to > >warn the user in this instance that the changes won't be saved on > >reboot (or did you mean new session)? > > I think that this is a work in progress so this is not a permanent > limitation. The problem is that the RegSaveKey must not interfere with the standard windows method. What's needed is that the dll itself _knows_ that the current exiting process is the last process of the current user. If so, it would be able to save and unload the hive from the registry. Does somebody have some code for that? "Last process" means, _really_ the last process on that machine, not only the last process in cygwin. If the user has still an interactive console session, the problem is solved because the windows logout code cares for saving and unloading anyway. Corinna
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |