Showing archive results for 2011

Sep 14, 2011
Post comments count0
Post likes count1

A common control for associating extensions is well overdue

Raymond Chen

Mark complained that a common control for associating extensions is well overdue. This is a recurring theme I see in the comments: People complaining that Windows lacks some critical feature that it in fact already has. (In the case, Windows had the feature for over two years at the time the question was asked. Maybe the SDK needs a ribbon? j/k) ...

Code
Sep 13, 2011
Post comments count0
Post likes count0

Why are the building numbers on Microsoft main campus so erratic?

Raymond Chen

Carrie complains that the building numbers on Microsoft main campus are completely random. Why is building 22 near buildings 40 and 41, far, far away from building 24? Because the Microsoft campus evolved. Many many years ago, the space on which the central Microsoft campus resides was a mill. Eventually it became an office park, and when Micro...

Non-Computer
Sep 12, 2011
Post comments count0
Post likes count1

Is this a really bug with CreateWindowEx or am I just confused?

Raymond Chen

Somebody sent me email pointing out strange behavior in the function if you fail a window creation by returning −1 from the message. On the other hand, returning from seems to work just fine. "So why the difference with ?" You already know enough to solve this puzzle. You just need to connect the dots. (In fact, the person who sent ...

Code
Sep 8, 2011
Post comments count0
Post likes count1

Why waste your money on the car when it's the sound system you care about?

Raymond Chen

There is apparently a subculture of people who decide to economize on the car part of the "loud stereo in car" formula (since they really don't care about the car—it's all about the music) and put their loud stereo on the back of a bicycle instead. This quotation from the article caught my attention: "People say, 'It's the next best thing...

Non-Computer
Sep 8, 2011
Post comments count0
Post likes count1

Why doesn't the Disk Management snap-in incorporate S.M.A.R.T. data?

Raymond Chen

My article a while back on Why the Disk Management snap-in reports my volume as Healthy when the drive is dying gave the low-level explanation of why the Disk Management snap-in does not incorporate SMART information: because the Disk Management snap-in is concerned with volume partitioning. DWalker59 noted that the use of the word "Healthy" carr...

History
Sep 7, 2011
Post comments count0
Post likes count1

Why is the registry a hierarchical database instead of a relational one?

Raymond Chen

Commenter ton asks why the registry was defined as a hierarchical database instead of a relational database. Heck, it's not even a hierarchical database! The original registry was just a dictionary; i.e., a list of name/value pairs, accessed by name. In other words, it was a flat database. If you turned your head sideways and treated the b...

Other
Sep 6, 2011
Post comments count0
Post likes count1

What happened to that suspicious-looking guy hanging around the entrance?

Raymond Chen

One of the fun parts of attending a conference is swapping stories with other professionals. Today's story is in honor of Global Security Week. (And retroactively in honor of the upcoming //build conference.) One of the attendees (let's call him Bob) shared with me a story of the time they had to make a change in one of their data centers. This pa...

Non-Computer
Sep 5, 2011
Post comments count0
Post likes count0

Thanks for letting me know what my ideal career and company are

Raymond Chen

When it's performance review season, all of a sudden you start getting mail about career management. What a coincidence. There are a variety of career management tools available, some mandatory, some optional. I gave one of the optional ones a shot, since it claimed to help me "manage my career and professional development", and as I already noted,...

Non-Computer
Sep 2, 2011
Post comments count0
Post likes count1

What's the story with the parameters to the WM_INPUT_DEVICE_CHANGE message?

Raymond Chen

A customer found these strange macros in winuser.h: According to the documentation for the message, the is the operation code and the is a handle to the device that changed. Given that definition, the correct macro would be . What's up with the bogus macro? The macro was incorrectly defined in Windows Vista. In the Windows 7 ver...

History