Showing tag results for History

Dec 3, 2012
Post comments count0
Post likes count1

Have you found any TheDailyWTF-worthy code during the development of Windows 95?

Raymond Chen
Raymond Chen

Mott555 is interested in some sloppy/ugly code or strange workarounds or code comments during the development of Windows 95, like "anything TheDailyWTF-worthy." I discovered that opening a particular program churned the hard drive a lot when you opened it. I decided to hook up the debugger to see what the problem was. What I discovered was...

History
Nov 28, 2012
Post comments count0
Post likes count1

Why are there both FIND and FINDSTR programs, with unrelated feature sets?

Raymond Chen
Raymond Chen

Jonathan wonders why we have both and , and furthermore, why the two programs have unrelated features. The program supports UTF-16, which doesn't; on the other hand, the program supports regular expressions, which does not. The reason why their feature sets are unrelated is that the two programs are unrelated. The program came first. As I ...

History
Nov 8, 2012
Post comments count0
Post likes count1

What does the COINIT_SPEED_OVER_MEMORY flag to CoInitializeEx do?

Raymond Chen
Raymond Chen

One of the flags you can pass to is , which is documented as : Trade memory for speed. This documentation is already vague since it doesn't say which direction the trade is being made. Are you reducing memory to increase speed, or increasing memory by reducing speed? Actually it's neither: If you pass this flag, then you are instructing COM to...

History
Oct 18, 2012
Post comments count0
Post likes count1

Why does ShellExecute return SE_ERR_ACCESSDENIED for nearly everything?

Raymond Chen
Raymond Chen

We saw a while ago that the function returns at the slightest provocation. Why can't it return something more meaningful? The short-term answer is that the return value from is both a success code and an error code, and you check whether the value is greater than 32 to see which half you're in. In particular, the error code case is if the va...

History
Oct 16, 2012
Post comments count0
Post likes count1

Irony patrol: Recycling bins

Raymond Chen
Raymond Chen

Microsoft has a large corporate recycling effort. Every office, every mail room, every kitchenette, every conference room has a recycling bin. The dining facilities earned Green Restaurant Certification, and there is a goal of making the cafeterias a zero-landfill facility by 2012. (Hey, that's this year!) A few years ago, I found one room in m...

History
Oct 15, 2012
Post comments count0
Post likes count1

The cries of "Oh no!" emerge from each office as the realization slowly dawns

Raymond Chen
Raymond Chen

Today is the (approximate) 15th anniversary of the Bedlam Incident. To commemorate that event, here's a story of another email incident gone horribly awry. Some time ago, an email message was sent to a large mailing list. It came from somebody in the IT department and said roughly, "This is a mail sent on behalf of Person X to check if your ...

History
Oct 1, 2012
Post comments count0
Post likes count1

What's the difference between F5 and F8 at the boot screen?

Raymond Chen
Raymond Chen

Ian B wondered what the difference is between pressing F5 and F8 while Windows is booting. I have no idea either. My strategy was to just mash on the function keys, space bar, DEL key, anything else I can think of. Keep pressing them all through the boot process, and maybe a boot menu will show up. The F5 hotkey was introduced in Windows 95...

History
Sep 13, 2012
Post comments count0
Post likes count1

WM_CTLCOLOR vs GetFileVersionInfoSize: Just because somebody else screwed up doesn't mean you're allowed to screw up too

Raymond Chen
Raymond Chen

In a discussion of the now-vestigial parameter to the function, Neil asks, "Weren't there sufficient API differences (e.g. WM_CTLCOLOR) between Win16 and Win32 to justify changing the definitions to eliminate the superfluous handle?" The goal of Win32 was to provide as much backward compatibility with existing 16-bit source code as can be pra...

History
Sep 12, 2012
Post comments count0
Post likes count1

Rogue feature: Docking a folder at the edge of the screen

Raymond Chen
Raymond Chen

Starting in Windows 2000 and continuing through Windows Vista, you could drag a folder out of Explorer and slam it into the edge of the screen. When you let go, it docked itself to that edge of the screen like a toolbar. A customer noticed that this stopped working in Windows 7 and asked, "Was this feature dropped in Windows 7, ...

History
Sep 5, 2012
Post comments count0
Post likes count1

How did the X-Mouse setting come to be?

Raymond Chen
Raymond Chen

Commenter HiTechHiTouch wants to know whether the "X-Mouse" feature went through the "every request starts at −100 points filter", and if so, how did it manage to gain 99 points? The X-Mouse feature is ancient and long predates the "−100 points" rule. It was added back in the days when a developer could add a random rogue feature bec...

History