Quantcast
Channel: The Old New Thing
Browsing all 1765 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to view the stack of threads that were terminated as part of process...

Last time we saw how to view the stack of threads that were terminated as part of process teardown from the kernel debugger. You can do the same thing from a user-mode debugger, and it's actually a...

View Article


Image may be NSFW.
Clik here to view.

What was the registry like in 16-bit Windows?

Commenter Niels wonders when and how the registry was introduced to 16-bit Windows and how much of it carried over to Windows 95. The 16-bit registry was extremely simple. There were just keys, no...

View Article


Image may be NSFW.
Clik here to view.

Why is the Close button in the upper right corner?

Chris wants to know how the close button ended up to the right of the minimize and maximize/restore buttons. "In OS/2, it is on the left, which left the two other buttons in place." I don't know why...

View Article

Image may be NSFW.
Clik here to view.

GUIDs are designed to be unique, not random

A customer liaison asked, "My customer is looking for information on the GUID generation algorithm. They need to select N items randomly from a pool of M (jury selection), and their proposed algorithm...

View Article

Image may be NSFW.
Clik here to view.

How do I prevent unchecked checkboxes in my listview control from disappearing?

A customer asked, "I have a listview control in report view with the LVS_EX_CHECK­BOXES extended style. I noticed that unchecked checkboxes are not visible until I hover over the corresponding item....

View Article


Image may be NSFW.
Clik here to view.

The extern "C" specifier disables C++ mangling, but that doesn't mean it...

The MSDN documentation on dllexport contains the following enigmatic paragraph, or at least did at the time I wrote this article: dllexport of a C++ function will expose the function with C++ name...

View Article

Image may be NSFW.
Clik here to view.

If my window hosts multiple windowless ActiveX controls, which one do I call...

Commenter Farproc asks how one goes about hosting two windowless ActiveX controls in a single window. In particular, "none of the documentation explains how to choose which control to send...

View Article

Image may be NSFW.
Clik here to view.

Hazards of spelling autocorrection: defiance

On an internal mailing list, a colleague asked for some recommendations on a webcam. I was wondering if there are any models I should avoid or defiantly get. I got this mental image of my colleague...

View Article


Image may be NSFW.
Clik here to view.

What does a STATUS_OBJECT_TYPE_MISMATCH exception in LeaveCriticalSection mean?

It means the same thing as a STATUS_INVALID_HANDLE exception.

View Article


Image may be NSFW.
Clik here to view.

What happens if I call KillTimer with a NULL hwnd?

A customer discovered a bug in their code and wanted some information on how serious it was, so they could assess how urgently they need to issue a fix. We have code that calls Set­Timer with a valid...

View Article

Image may be NSFW.
Clik here to view.

How do I prefetch data into my memory-mapped file?

A customer created a memory mapping on a large file and found that when the memory manager wanted to page in data from that file, it did so in 32KB chunks. The customer wanted to know if there was a...

View Article

Image may be NSFW.
Clik here to view.

The time I watched a total lunar eclipse from the top of a mountain

One of my colleagues loves doing outdoorsy things, and he also loves space and astronomy. Many years ago, he invited a small number of us on an outing that combined both of his interests: A hike up a...

View Article

Image may be NSFW.
Clik here to view.

Why does PrintWindow hate CS_PARENTDC? Because EVERYBODY hates CS_PARENTDC!

Commenter kero wants to know why the Print­Window function hates CS_PARENT­DC. (And CS_CLASS­DC, and CS_OWN­DC.) Because everybody hates CS_PARENT­DC! (And CS_CLASS­DC, and CS_OWN­DC.) We saw earlier...

View Article


Image may be NSFW.
Clik here to view.

Microspeak: Turds

In Microspeak, a turd is a graphics glitch which results in old pixels appearing on the screen when they shouldn't. Perhaps they are not being erased properly, or instead of being erased, they move to...

View Article

Image may be NSFW.
Clik here to view.

Don't be helpless: What might be the reason for a "Path not found" error?

Internally at Microsoft, we have a programmer's tool which I will call Program Q. On the peer-to-peer mailing list for Program Q, somebody asked the following question: When I try to do a q edit...

View Article


Image may be NSFW.
Clik here to view.

Eventually the window manager simply says that enough is enough

Many window manager operations are recursive, and eventually the window manager will simply say that enough is enough when the recursion goes too deep. We've seen this when you nest windows more than...

View Article

Image may be NSFW.
Clik here to view.

How can I determine the underlying cause of a EXCEPTION_IN_PAGE_ERROR exception?

A customer was using memory-mapped files and installed an exception handler to log in-page errors in the memory-mapped file region. They wanted to know how they could obtain the real disk error that...

View Article


Image may be NSFW.
Clik here to view.

Why do you have to wait for Windows Error Reporting to check for solutions...

Leo Davidson wonders why you have to wait for Windows Error Reporting to check for solutions before it restarts the application. Why not do the two in parallel? Well, for one thing, when the...

View Article

Image may be NSFW.
Clik here to view.

Fabio coming to Redmond. Also: Whey Protein

Mark your calendars: Fabio Lanzoni, better known to the world as simply Fabio, will be at the Redmond Whole Foods Market on June 21 to promote his whey protein product. (Now made with real Fabio!) And...

View Article

Image may be NSFW.
Clik here to view.

Microsoft Dynamics in a soda can, sort of

It is not uncommon for a product team to produce some custom soda cans (really, carbonated water) for distribution at Microsoft cafeterias. Last year, the Microsoft Dynamics™ CRM 2011 team put some...

View Article
Browsing all 1765 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>