borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Linux, *nix, *BSD .Net ports?)Next Topic (Books?) New Topic New Poll Post Reply
AndreaVB Forum : C# : How can i activate changes in the registry without rebooting?
Poster Message
sebastian
Level: Trainee

Registered: 26-11-2007
Posts: 1

icon How can i activate changes in the registry without rebooting?

After performing the changes i need in the registry, i have to reboot in order to activate them.
Normaly when i change the display settings, i have the 'apply' option, which activates the changes without the need of booting. How can i do this?
With API, NT commands? Keys in the registry? ...
Thanks for any advice!!

Seb

04-10-2002 at 02:30 PM
View Profile Send Email to User Show All Posts | Quote Reply
dcostelloe
Level: VB Guru

Registered: 11-06-2002
Posts: 74
icon Re: How can i activate changes in the registry without rebooting?

Yes you do, unless the changes only impact your application and not the system in that case I would re-initialize the configuration within your application. If you are going to impact the system you will need to either re-boot or re-logon.
With out knowing more about what it is your goals are its hard to determine a suitable answer.

Hope this helps



____________________________
Life is but a merry go round
around and around :-)

Visit us today:
http://www.welford-costelloe.com

05-11-2002 at 01:23 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
sebastian
Level: Trainee

Registered: 26-11-2007
Posts: 1
icon Re: How can i activate changes in the registry without rebooting?

Thank You for the reply, i'll try to give you more info.
I use 2 graphic cards. The second graphic card should be active only for certain users, (wich will use a special device on it). Searching for a way to enable-disable the second graphic card in a way that the user won't notice, i made a copy of the whole registry using 1 card and another copy of the registry when i enable the second card. I compared them with a compare software an i obtained in wich keys there where changes. Knowing this i made two profiles, one with this keys using 1 card, and other with the same keys using 2 cards. Then i installed the keys in start up depending on the particular user needs. Once the keys where installed i checked in the 'Display Settings' but i saw no changes. Then i made a reboot and the new settings where there. I was glad i found the right keys (was lots of work), but i can not prompt the user after login in to perform a reboot in order for the changes to take effect (this is KO). And second i needed to change 15 keys...pretty dangerous when i do not know exactly what else am i changing.
I use Windows 2000 Prof. in a DELL 530 Workstation, 512 RAM, 2.2 MHz,...and of course 2 graphic cards.
Any ideas?

05-11-2002 at 01:53 PM
View Profile Send Email to User Show All Posts | Quote Reply
win_dir
Level: VB Guru

Registered: 04-08-2002
Posts: 390
icon Re: How can i activate changes in the registry without rebooting?

i wouldve thought that this configuration would be sorted out by a driver at start up so maybe you shouuld have a look at which drivers are involved and if there is a way to restart the drivers somehow

____________________________
We have a Mustek 5 M/Pix GSm@rt USB Digital Camera
for just £74.03 , offer only on until 30th February!

<AllDuck.com>      

Enquiries/Sales: 0845 430 9862
Fax: 0870 950 4532

28-04-2003 at 09:45 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : C# : How can i activate changes in the registry without rebooting?
Previous Topic (Linux, *nix, *BSD .Net ports?)Next Topic (Books?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder