Showing tag results for History

Jan 17, 2013
Post comments count0
Post likes count2

A brief history of the GetEnvironmentStrings functions

Raymond Chen

The Get­Environment­Strings function has a long and troubled history. The first bit of confusion is that the day it was introduced in Windows NT 3.1, it was exported funny. The UNICODE version was exported under the name Get­Environment­StringsW, but the ANSI version was exported under the name Get­Environment­...

History
Dec 21, 2012
Post comments count0
Post likes count1

Why do BackupRead and BackupWrite require synchronous file handles?

Raymond Chen

The and functions require that the handle you provide by synchronous. (In other words, that they not be opened with .) A customer submitted the following question: We have been using asynchronous file handles with the . Every so often, the call to will fail, but we discovered that as a workaround, we can just retry the operation, and it will ...

History
Dec 4, 2012
Post comments count0
Post likes count1

The QuickCD PowerToy, a brief look back

Raymond Chen

One of the original Windows 95 PowerToys was a tool called QuickCD. Though that wasn't its original name. The original name of the QuickCD PowerToy was FlexiCD. You'd think that it was short for "Flexible CD Player", but you'd be wrong. FlexiCD was actually named after its author, whose name is Felix, but who uses the "Flexi" anagram as a whi...

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

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

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

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

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

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

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