Vista Problems (Surprise?)

I recently migrated to Vista (a story and a review for another day), but one thing has been bothering me. The “Visual Effects” settings (from My Computer Properties -> Advanced System Properties -> Performance Settings) do not stick.

If I customize the settings, they get reset on logoff or reboot. This is true no matter which account I use, Administrator or limited user. I tried to monitor the dialog box with procmon to see what registry keys were involved, but there were quite a few and they looked annoying to research.

The strange thing is that the dialog box is an administrator-only feature, which would imply that the settings are system-wide. Yet monitoring the dialog box shows all sorts of per-user settings go by.

I used the classic Windows theme for XP (I hated Luna). Aero is tolerable so I decided to give it a shot, but I don’t like all of the frilly, useless animations. For example, windows “slurping” into the task bar and menus fading in and out feels kitschy to me, and only seems to serve as some sort of visual distraction or delay. So I disabled all of these animations in the Visual Effects dialog, and soon discovered that as soon as I logged out and logged back in, I had to reapply all of the settings.

I couldn’t find any other instances of this problem on Google. Damaged Soul managed to find one but it contained a red herring and no solution. I gave up and solved it programmatically, with a small, very insecure (I was lazy) C program sitting in my Startup folder.

Select All Code:
#define WINDOWS_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <tchar.h>
 
int main()
{
	HANDLE hToken;
	ANIMATIONINFO info;
 
	if (!LogonUser(_T("Administrator"),
		_T("KNIGHT"),
		_T("blahblahblah"),
		LOGON32_LOGON_BATCH,
		LOGON32_PROVIDER_DEFAULT,
		&hToken))
	{
		exit(1);
	}
 
	if (!ImpersonateLoggedOnUser(hToken))
	{
		exit(1);
	}
 
	SystemParametersInfo(SPI_SETDISABLEOVERLAPPEDCONTENT,
		0,
		(PVOID)TRUE,
		SPIF_SENDCHANGE);
 
	SystemParametersInfo(SPI_SETCOMBOBOXANIMATION,
		0,
		(PVOID)FALSE,
		SPIF_SENDCHANGE);
 
	SystemParametersInfo(SPI_SETDRAGFULLWINDOWS,
		0,
		(PVOID)FALSE,
		SPIF_SENDCHANGE);
 
	SystemParametersInfo(SPI_SETSELECTIONFADE,
		0,
		(PVOID)FALSE,
		SPIF_SENDCHANGE);
 
	SystemParametersInfo(SPI_SETCLIENTAREAANIMATION,
		0,
		(PVOID)FALSE,
		SPIF_SENDCHANGE);
 
	SystemParametersInfo(SPI_SETMENUANIMATION,
		0,
		(PVOID)FALSE,
		SPIF_SENDCHANGE);
 
	info.cbSize = sizeof(ANIMATIONINFO);
	info.iMinAnimate = 0;
	SystemParametersInfo(SPI_SETANIMATION, 
		sizeof(ANIMATIONINFO),
		&info, 
		SPIF_SENDCHANGE);
}

Two notes from playing with this API:

  1. SPI_SETDISABLEOVERLAPPEDCONTENT appears to do nothing? I thought it would be related to Transparent Glass, but… Transparent Glass is a user-mode (per-user?) setting. You can change it in your display preferences, and oddly enough, that will cause it to flip the switch in the Administrator-only settings! I have no idea what’s going on there. Also, transparent glass is the only “effect” setting not to be reset on logging off.
  2. SPIF_UPDATEINIFILE fails with ERROR_MOD_NOT_FOUND on Vista. Maybe it does that on previous versions too, I have no idea. Maybe I’m forgetting to link to something or maybe I’ve missed a security policy thing somewhere that fixes all of my problems.

Now that I have my hacky fix, I don’t feel like investigating the problem any further. But it’d be nice to know what’s going on here, and why those settings can’t per-user in the first place.

124 thoughts on “Vista Problems (Surprise?)

  1. Jerold Caoagdan

    I just couldn’t go away your web site prior to suggesting that I really enjoyed the standard information an individual provide to your visitors? Is going to be back regularly to check out new posts.

  2. Martin B

    Great – I should definitely pronounce, impressed with your web site. I had no trouble navigating through all tabs and related info ended up being truly simple to do to access. I recently found what I hoped for before you know it in the least. Reasonably unusual. Is likely to appreciate it for those who add forums or anything, web site theme . a tones way for your client to communicate. Nice task.

  3. Sharyl Gatheright

    naturally like your web site but you need to test the spelling on several of your posts. A number of them are rife with spelling problems and I in finding it very troublesome to tell the truth however I’ll surely come again again.

  4. new jordans release

    I am very excited by this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. I think it may be helpful to everyone. Thanks.

  5. Check Out Our Site

    It’s in reality a nice and useful piece of information. I am happy that you simply shared this useful information with us. Please keep us informed like this. Thank you for sharing.

  6. Stephaine

    I do believe all of the ideas you’ve introduced in your post. They’re really convincing and can definitely work.
    Nonetheless, the posts are very quick for
    starters. Could you please extend them a bit from next time?
    Thanks for the post.

  7. Suggested Webpage

    I am really loving the theme/design of your blog. Do you ever run into any web browser compatibility problems? A small number of my blog readers have complained about my website not operating correctly in Explorer but looks great in Chrome. Do you have any tips to help fix this problem?

  8. click the next web page

    Hey there! I’ve been reading your website for a long time now and finally got the bravery to go ahead and give you a shout out from Humble Texas! Just wanted to mention keep up the fantastic work!

  9. Healthy Meals

    My spouse and i were really joyous when Chris could conclude his analysis by way of the ideas he came across out of your web pages. It is now and again perplexing to just be giving away tricks that others have been trying to sell. We understand we have the website owner to thank for that. The specific illustrations you made, the straightforward web site navigation, the relationships you give support to foster – it is all terrific, and it’s really making our son and our family reason why this article is pleasurable, and that is seriously important. Thanks for all!

  10. Follow This Link

    Appreciating the hard work you put into your site and in depth information you provide. It’s nice to come across a blog every once in a while that isn’t the same outdated rehashed information. Excellent read! I’ve saved your site and I’m including your RSS feeds to my Google account.

  11. home developments home

    Hello, Neat post. There is an issue along with your website in internet explorer, would check this¡K IE still is the market leader and a large element of folks will leave out your excellent writing because of this problem.

  12. Green Energy

    Pretty section of content. I just stumbled upon your website and in accession capital to assert that I get actually enjoyed account your blog posts. Any way I’ll be subscribing to your augment and even I achievement you access consistently rapidly.

  13. Angelena Herz

    You can definitely see your enthusiasm in the work you write. The arena hopes for even more passionate writers like you who are not afraid to mention how they believe. At all times go after your heart. “What power has law where only money rules.” by Gaius Petronius.

  14. marketing with alex

    Hi! I’ve been reading your web site for a long time now and finally got the bravery to go ahead and give you a shout out from Dallas Tx! Just wanted to say keep up the fantastic job!

  15. automobile coolers

    I not to mention my friends appeared to be examining the good tips found on the blog and then instantly I got a horrible suspicion I had not expressed respect to the web site owner for those strategies. Most of the young men are already consequently passionate to read through them and have in effect certainly been taking advantage of them. Appreciate your truly being well kind and also for finding varieties of exceptional themes millions of individuals are really needing to understand about. Our sincere regret for not saying thanks to earlier.

  16. Devondra

    Nice post. I be taught one thing more difficult on completely different blogs everyday. It would at all times be stimulating to read content from other writers and follow a little bit something from their store. I’d choose to make use of some with the content on my blog whether or not you don’t mind. Natually I’ll provide you with a hyperlink on your web blog. Thanks for sharing.

  17. Wendolyn Mainero

    You actually make it seem so easy together with your presentation however I find this matter to be really one thing that I feel I might never understand. It seems too complicated and extremely broad for me. I’m taking a look ahead for your next submit, I will attempt to get the cling of it!

  18. Kitchen Rugs

    you are actually a excellent webmaster. The site loading velocity is incredible. It kind of feels that you are doing any distinctive trick. Furthermore, The contents are masterpiece. you’ve performed a fantastic job in this topic!

  19. gratis Sexkontakte

    Hallöli.

    Na wie gehts dir mit deiner neuen Seite Hab mich echt gefreut deine neue Seite zu sehen.

    Schau doch mal wieder auf meiner Homepage vorbei.
    Lass alle lieb Grüßen, LG

  20. Pingback: Pet Clothes for Small Dogs

  21. black men skin care

    Hiya, I’m really glad I’ve found this info. Today bloggers publish only about gossips and internet and this is actually irritating. A good web site with exciting content, this is what I need. Thank you for keeping this website, I’ll be visiting it. Do you do newsletters? Can’t find it.

  22. automobile camera system

    I do agree with all of the ideas you’ve offered in your post. They are very convincing and can certainly work. Still, the posts are too short for novices. Could you please extend them a bit from next time? Thanks for the post.

  23. wireless network

    hello!,I love your writing so much! percentage we communicate extra about your post on AOL? I require an expert on this house to unravel my problem. Maybe that is you! Having a look ahead to look you.

  24. cricket sports news

    I do believe all of the ideas you have presented for your post. They’re very convincing and will certainly work. Nonetheless, the posts are too brief for novices. May just you please prolong them a little from next time? Thank you for the post.

  25. bing

    Incredible! This blog looks just like my old one! It’s on a completely
    different topic but it has pretty much the same layout and design.
    Great choice of colors!

    Also visit my blog – bing

  26. Alane Bejger

    If you need to adjust quickly to an unfamiliar time zone, you should try and stay awake until around 8pm local time. Though you may be exhausted, you need to not go to bed early so that you don’t exacerbate jet lag.

  27. giving bingo

    I know this if off topic but I’m looking into starting my own blog and was wondering what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web smart so I’m not 100% certain. Any recommendations or advice would be greatly appreciated. Thank you

  28. Pamella Srnsky

    It really is the best time for making some programs for that future and it’s time to be satisfied. I’ve got read this publish and if I could I wish to advise you some helpful factors or tips. Possibly you can create subsequent articles referring to this article. I wish to go through extra issues about it!

  29. click this link now

    Howdy, I believe your website may be having browser compatibility problems. When I look at your web site in Safari, it looks fine however, when opening in IE, it has some overlapping issues. I simply wanted to give you a quick heads up! Besides that, great site!

  30. teens in delhi

    Hello there! I know this is kind of off topic but I was wondering if you
    knew where I could find a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m
    having problems finding one? Thanks a lot!

  31. click to read more

    Hi there! I just noticed your site: when I was searching stumbleupon.com. It looks as though someone enjoyed your website so much they decided to bookmark it. I’ll definitely be coming here more often.

  32. Verlene Kehrer

    Its superb as your other content : D, appreciate it for putting up. “I catnap now and then, but I think while I nap, so it’s not a waste of time.” by Martha Stewart.

  33. Alla Gadley

    Well it was a really informative blog post.Thanks for sharing this type of information with us.I hope you certainly will keep on enlightening people in future also,by way of such a useful info.Keep up the brilliant task.

  34. Shelia

    Helpful info. Fortunate me I found your web site accidentally, and I am shockewd
    why this coincidence did not came about earlier! I bookmarked
    it.

    Feel free to surdf to my web-site … jennifer coolidge
    plastic surgery (Shelia)

  35. kliknij link

    Needed to lotopyeer draft you this bit of remark in order to thank you yet again regarding the fantastic information you’ve documented above. This is simply particularly generous with you to present unreservedly just what a lot of people might have offered for sale as an electronic book to help make some bucks for their own end, chiefly now that you could possibly have done it in the event you considered necessary. The guidelines additionally served to become a good way to know that other people have a similar passion similar to mine to know a little more in respect of this condition. I think there are some more enjoyable situations in the future for those who read carefully your website.

Comments are closed.