Showing archive results for 2011

Oct 6, 2011
Post comments count0
Post likes count1

Why can't I move the Program Files directory via the unattend file?

Raymond Chen

We saw last time that the unattend file lets you change some Windows configuration settings that cannot be changed after Setup is complete. But one of the things you can't change is the location of the Program Files directory. Many people wish they could relocate their Program Files directory to another drive in order to relieve disk space pressur...

Tips/Support
Oct 5, 2011
Post comments count0
Post likes count1

The unattend file lets you configure Windows while it's installing, and in some cases it's your only chance

Raymond Chen

Some Windows settings can only be established as part of the installation process. This is done with a so-called unattend file. (Remember, no matter where you put an advanced setting, somebody will tell you that you are an idiot.) In earlier versions of Windows, the unattend file took the form of an INI file, but Windows Vista hopped aboard t...

Tips/Support
Oct 4, 2011
Post comments count0
Post likes count0

Beyoncé, the giant metal chicken has a Facebook page

Raymond Chen

In my 2011 mid-year link clearance, I linked to the story And that's why you should learn to pick your battles. I thought that was the end of the story, but no, it's the gift that keeps on giving. Beyoncé, the giant metal chicken has a Facebook page, populated with all sorts of crazy things like pictures of Beyoncé's relatives spo...

Non-Computer
Oct 4, 2011
Post comments count0
Post likes count0

Adjusting your commute to avoid being at work quite so much

Raymond Chen

Commenter Bernard remarked that he moved from one side of the company campus to the other, and his commute distance (and time) was cut in half. That reminds me of a short story from a now-retired colleague of mine. He bicycled to work, and over the years, the gradual expansion of the Microsoft main corporate campus resulted in nearly three quarte...

Non-Computer
Oct 3, 2011
Post comments count0
Post likes count1

Do not access the disk in your IContextMenu handler, no really, don't do it

Raymond Chen

We saw some time ago that the number one cause of crashes in Explorer is malware. It so happens that the number one cause of hangs in Explorer is disk access from context menu handlers (a special case of the more general principle, you can't open the file until the user tells you to open it). That's why I was amused by Memet's claim that "w...

Code
Sep 30, 2011
Post comments count0
Post likes count1

There's also a large object heap for unmanaged code, but it's inside the regular heap

Raymond Chen

Occasionally, a customer will ask for assistance explaining some strange heap behavior, or at least heap behavior that appears to be strange if you assume that the heap behaves purely classically. I need to understand the heap behavior we're seeing. I have a sample program which allocates five blocks of memory from the process heap, each of size ...

Other
Sep 29, 2011
Post comments count0
Post likes count1

Appearing to succeed is a valid form of undefined behavior, but it's still undefined

Raymond Chen

A customer requested a clarification on the MSDN documentation for the function. The MSDN documentation says that if the parameter is , then the behavior is undefined. Is this true? As explicitly stated in MSDN, the behavior is undefined. Observe that the annotation on the parameter is , which means that the parameter must be a non- value...

Code
Sep 27, 2011
Post comments count0
Post likes count1

Ah, the exciting world of cross-forest dogfood

Raymond Chen

The Windows group has its own domain (known as for historical reasons) which operates separately from the domain forest operated by the Microsoft IT department. Various trust relationships need to be set up between them so that people on the Windows team can connect to resources managed by the Microsoft IT department and vice versa, but it g...

Other