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.

43 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.

    Reply
  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.

    Reply
  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.

    Reply
  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.

    Reply
  5. 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.

    Reply
  6. 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?

    Reply
  7. 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!

    Reply
  8. 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.

    Reply
  9. 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.

    Reply
  10. 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.

    Reply
  11. 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.

    Reply
  12. 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.

    Reply
  13. 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.

    Reply
  14. 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!

    Reply
  15. 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!

    Reply
  16. Pingback: Pet Clothes for Small Dogs

  17. 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.

    Reply
  18. 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.

    Reply
  19. 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.

    Reply
  20. 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.

    Reply
  21. 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

    Reply
  22. 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.

    Reply
  23. 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

    Reply
  24. 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!

    Reply
  25. 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!

    Reply
  26. 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!

    Reply

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">