Showing results for 2010 - Page 5 of 36 - The Old New Thing

Nov 17, 2010
0
0

How full does a hard drive have to get before Explorer will start getting concerned?

Raymond Chen
Raymond Chen

The answer depends on which "hard drive almost full" warning you're talking about. Note that these boundaries are merely the current implementation (up until Windows 7). Future versions of Windows reserve the right to change the thresholds. The information provided is for entertainment purposes only. The thermometer under the drive icon in M...

Tips/Support
Nov 16, 2010
0
0

If you measure something, people will change their behavior to address the measurement and not the thing the measurement is intended to measure

Raymond Chen
Raymond Chen

We all know that once you start measuring something, people will change the way they behave. We hope that the change is for the better, but that's not always the case, and that's especially true if you are using the metrics as a proxy for something else: People will manipulate the metric without necessarily affecting the thing that your metric is ...

Other
Nov 15, 2010
0
0

The program running in a console decides what appears in that console

Raymond Chen
Raymond Chen

James Risto asks, "Is there a way to change the behavior of the CMD.EXE window? I would like to add a status line." The use of the phrase "the CMD.EXE window" is ambiguous. James could be referring to the console itself, or he could be referring to the CMD.EXE progarm. The program running in a console decides what appears in the console. If yo...

Other
Nov 12, 2010
0
0

Why does the common file dialog change the current directory?

Raymond Chen
Raymond Chen

When you change folders in a common file dialog, the common file dialog calls to match the directory you are viewing. (Don't make me bring back the Nitpicker's Corner.) Okay, the first reaction to this is, "What? I didn't know it did that!" This is the other shoe dropping in the story of the curse of the current directory. Now the question is, ...

Other
Nov 11, 2010
0
0

Using delayload to detect functionality is a security vulnerability

Raymond Chen
Raymond Chen

We saw last time that your debugging code can be a security vulnerability when you don't control the current directory. A corollary to this is that your delayload code can also be a security vulnerability, for the same reason. When you use the linker's delayload functionality to defer loading a DLL until the first time it is called, the linker i...

Other
Nov 9, 2010
0
0

The curse of the current directory

Raymond Chen
Raymond Chen

The current directory is both a convenience and a curse. It's a convenience because it saves you a lot of typing and enables the use of relative paths. It's a curse because of everything else. The root cause of this curse is that the Windows NT family of operating systems keeps open a handle to the process's current directory. (Pre-emptive ...

Other
Nov 5, 2010
0
0

Why does the Win32 Time service require the date to be correct before it will set the time?

Raymond Chen
Raymond Chen

Public Service Announcement: Daylight Saving Time ends in most parts of the United States this weekend. Andy points out that if you attempt to synchronize your clock when the date is set incorrectly, the operation fails with the error message "An error occurred while Windows was synchronizing with time.windows.com. For security reasons, Windows ca...

Tips/SupportTime