Showing results for History - The Old New Thing

May 4, 2005
Post comments count0
Post likes count0

When people ask for security holes as features: Stealing passwords

Raymond Chen
Raymond Chen

Sometimes people ask for features that are such blatant security holes I don't know what they were thinking. Is there a way to get the current user's password? I have a program that does some stuff, then reboots the system, and I want to have the current user's password so I can log that user back in when I'm done, then my program can resume its o...

HistoryWhen people ask for security holes as features
Apr 19, 2005
Post comments count0
Post likes count0

When people ask for security holes as features: Hiding files from Explorer

Raymond Chen
Raymond Chen

By default, Explorer does not show files that have the flag, since somebody went out of their way to hide those files from view. You can, of course, ask that such files be shown anyway by going to Folder Options and selecting "Show hidden files and folders". This shows files and folders even if they are marked as . On the other hand, files that ...

HistoryWhen people ask for security holes as features
Mar 28, 2005
Post comments count0
Post likes count0

When a program asks you a question and then gets upset if you answer it

Raymond Chen
Raymond Chen

JeffDav's story of a program that didn't like it when he told it where to install reminded me of another program that we dealt with during Windows 95 development. This was a big-name program developed by one of the biggest-of-the-big name software companies. Let's give this program the imaginary name "LitWare". Its setup program asked you w...

History
Mar 15, 2005
Post comments count0
Post likes count2

Windows are not cheap objects

Raymond Chen
Raymond Chen

Although Windows is centered around, well, windows, a window itself is not a cheap object. What's more, the tight memory constraints of systems of 1985 forced various design decisions. Let's take for example the design of the list box control. In a modern design, you might design the list box control as accepting a list of child windows, each of w...

History
Feb 25, 2005
Post comments count0
Post likes count1

Two brief reminiscences on the Windows XP "Comments?" button

Raymond Chen
Raymond Chen

In beta versions of Windows XP, there was special code in the window manager to give every window a link in the upper right corner called "Comments?" which if clicked on displayed a dialog that allowed you to submit feedback to Microsoft about that window. Since this was a beta release, there was no anonymity when you submitted feedback. (You...

History
Feb 10, 2005
Post comments count0
Post likes count0

Why do minimized windows have an apparent size of 160×31?

Raymond Chen
Raymond Chen

We discussed a few months ago the issue of where windows minimized to before the taskbar was invented. In the modern taskbar world, why do minimized windows have an apparent size of 160x31? The size isn't just apparent. That's really their size. You can see them, for example, if you fire up a program that uses the Multiple Document Interface. ...

History
Feb 8, 2005
Post comments count0
Post likes count0

What other effects does DS_SHELLFONT have on property sheet pages?

Raymond Chen
Raymond Chen

Once you invent a new flag you can start using it to fix errors of the past without breaking backwards compatibility. One of the errors of the past was that property sheet page dimensions were taken relative to the "MS Sans Serif" font, even if the page used some other font. This sample dialog template says that it is 212dlu wide and 188dlu t...

CodeHistory
Feb 7, 2005
Post comments count0
Post likes count0

Why does DS_SHELLFONT = DS_FIXEDSYS | DS_SETFONT?

Raymond Chen
Raymond Chen

You may have noticed that the numerical value of the flag is equal to . Surely that isn't a coincidence. The value of the flag was chosen so that older operating systems (Windows 95, 98, NT 4) would accept the flag while nevertheless ignoring it. This allowed people to write a single program that got the "Windows 2000" look w...

History
Feb 3, 2005
Post comments count0
Post likes count0

Why is breadth-first searching better for file system tree walking?

Raymond Chen
Raymond Chen

Earlier, Eric Lippert discussed one scenario where breadth-first searching is better than depth-first searching. Today, I'll tell you about another. If you go back to the old MS-DOS file enumeration functions, you'll find that there is a "Find first file" function and a "Find next file" function, but no "Find close" function. That's because the ...

History
Feb 2, 2005
Post comments count0
Post likes count1

The history of the Windows PowerToys

Raymond Chen
Raymond Chen

During the development of Windows 95, as with the development of any project, the people working on the project write side programs to test the features they are adding or to prototype a feature. After Windows 95 shipped, some of those programs were collected into the first edition of the Windows 95 Power Toys. As I recall, the fir...

History