Showing tag results for History

Jul 25, 2007
Post comments count0
Post likes count0

What is Dave's frame class?

Raymond Chen
Raymond Chen

Back in 2004, we lost Dave's frame class. Dave's frame class, or more accurately, DavesFrameClass, was the window class that drew the CPU meter on the Performance page of Task Manager. As you might have guessed, Dave was the name of the original author of Task Manager. (If the checked version of Task Manager from NT 4 encountered an internal ...

History
Jul 18, 2007
Post comments count0
Post likes count0

Why is the limit of window handles per process 10,000?

Raymond Chen
Raymond Chen

If your program runs haywire, you will find that it manages to create about 10,000 window manager objects and then the system won't let it have any more. Why stop at 10,000? The first answer is "If you have to ask, you're probably doing something wrong." Programs shouldn't be creating anywhere near ten thousands window manager objects in the first...

History
Jul 17, 2007
Post comments count0
Post likes count0

How are window manager handles determined in Windows NT?

Raymond Chen
Raymond Chen

We left off our story last time by raising the problem of programs that send messages to windows that have already been destroyed and how window handle re-use exacerbates the problem. Although this is clearly a bug in the programs that use window handles after destroying the window, the problem is so widespread that the window manager folks in Wind...

History
Jul 16, 2007
Post comments count0
Post likes count0

How are window manager handles determined in 16-bit Windows and Windows 95?

Raymond Chen
Raymond Chen

(Prefatory remark: The following information is of the "behind the scenes" nature and does not constitute formal documentation. Actually, nothing I write counts as formal documentation, so I shouldn't have needed to write that, but people sometimes intentionally play stupid and interpret all forms of the future tense as if I were making some sort ...

History
Jun 4, 2007
Post comments count0
Post likes count0

Choosing a provocative debug signature

Raymond Chen
Raymond Chen

Back in Windows 95, there was an elusive heap corruption bug in the graphics engine, and after a lot of analysis, the graphics folks were convinced that the corruption was coming from outside their component, and they had a pretty good idea who the corruptor was, but they needed proof. One of the standard techniques of narrowing down the sour...

History
Apr 2, 2007
Post comments count0
Post likes count0

Why do operating system files still adhere to the old 8.3 naming convention?

Raymond Chen
Raymond Chen

Commenter Brian Reiter asks a duplicate of a question that was already submitted to the Suggestion Box: Darren asks why operating system† files still (for the most part) adhere to the old 8.3 naming convention. There are a few reasons I can think of. I'm not saying that these are the reasons; I'm just brainstorming. First, of course, ...

History
Mar 12, 2007
Post comments count0
Post likes count0

What is a SM_SLOWMACHINE?

Raymond Chen
Raymond Chen

Jason Doucette asks how slow a machine has to be to be considered a . The answer: Pretty darned slow by today's standards. When the metric was introduced in Windows 95, the definition of a "slow machine" was as follows (roughly): That bit about the display driver is a little strange. Windows actually trusted display drivers to report whe...

History
Mar 6, 2007
Post comments count0
Post likes count0

What was the first parameter to CoInitialize used for?

Raymond Chen
Raymond Chen

Larry Osterman explains in a two-part series, The sad story of CoGetMalloc and Why was the ability to specify an allocator during CoInitialize removed from the system?

History
Feb 15, 2007
Post comments count0
Post likes count0

Why can't you set the command prompt's current directory to a UNC?

Raymond Chen
Raymond Chen

If you try to set the current directory of a command prompt, you get the error message "CMD does not support UNC paths as current directories." What's going on here? It's MS-DOS backwards compatibility. If the current directory were a UNC, there wouldn't be anything to return to MS-DOS programs when they call function 19h (Get current drive). Tha...

History
Feb 12, 2007
Post comments count0
Post likes count0

Why doesn't the window manager unregister window classes when the owning DLL unloads?

Raymond Chen
Raymond Chen

If you look at the documentation for the function, you'll see that it calls out different behavior depending on whether you're running Windows 95 or Windows NT. Commenter Vipin asked why Windows NT doesn't follow Windows 95's lead. Back in the old days, 16-bit Windows did unregister classes automatically when a DLL unloaded. ...

History