Showing archive results for 2014

Oct 14, 2014
Post comments count0
Post likes count1

Is there a way to disable a specific balloon notification without disabling all of them?

Raymond Chen

There is a group policy called Turn off all balloon notifications, but what if you want to turn off only one specific notification? The taskbar does not offer fine-grained policy control over balloon notifications. All you have is the giant sledgehammer that turns off all of them. If there is a specific balloon you want to disable, you have to che...

Tips/Support
Oct 10, 2014
Post comments count0
Post likes count1

Some parts of an interface can change but others can't

Raymond Chen

When I wrote about asking the compiler to answer calling convention questions, some people were concerned about whether this was a reliable mechanism or whether it was relying on something that can change in the future. This is a special case of the question, "What parts of an interface can change, and what can't?" And it all boils down to comp...

Code
Oct 9, 2014
Post comments count0
Post likes count1

Why is there a 64KB no-man's land near the end of the user-mode address space?

Raymond Chen

We learned some time ago that there is a 64KB no-man's land near the 2GB boundary to accommodate a quirk of the Alpha AXP processor architecture. But that's not the only reason why it's there. The no-man's land near the 2GB boundary is useful even on x86 processors because it simplifies parameter validation at the boundary between user mode and k...

History
Oct 8, 2014
Post comments count0
Post likes count1

Standard handles are really meant for single-threaded programs

Raymond Chen

When I discussed the conventions for managing standard handles, Sven2 noted that I implied that you need to call with a new handle if you close the current handle and asked "Wouldn't it make more sense to call it the other way round? I.e., first set the new handle, then close the old one? It would ensure that any other thread that runs in paralle...

Code
Oct 7, 2014
Post comments count0
Post likes count1

Microspeak: All-up

Raymond Chen

In other words: All-inclusive.

Non-ComputerMicrospeak
Oct 6, 2014
Post comments count0
Post likes count1

Enumerating cyclical decompositions with Stirling numbers

Raymond Chen

This whole enumeration nightmare-miniseries started off with Stirling numbers of the second kind. But what about Stirling numbers of the first kind? Those things ain't gonna enumerate themselves! The traditional formulation of the recursion for Stirling numbers of the first kind (unsigned version, since it's hard to enumerate negative numbers)...

Code
Oct 2, 2014
Post comments count0
Post likes count1

In the red corner, EXCEPTION_INT_DIVIDE_BY_ZERO and STATUS_INTEGER_DIVIDE_BY_ZERO; and in the blue corner, EXCEPTION_INT_OVERFLOW and STATUS_INTEGER_OVERFLOW

Raymond Chen

The exception code (and its doppelgänger ) is raised, naturally enough, when the denominator of an integer division is zero. The x86 and x64 processors also raise this exception when you divide by , or more generally, when the result of a division does not fit in the destination. The division instructions for those processors take a 2N-bit...

Code
Oct 1, 2014
Post comments count0
Post likes count2

You can name your car, and you can name your kernel objects, but there is a qualitative difference between the two

Raymond Chen

A customer reported that the appeared to be unreliable. We have two threads, one that waits on an event and the other that signals the event. But we found that sometimes, signaling the event does not wake up the waiting thread. We have to signal it twice. What are the conditions under which will ignore a signal? // cleanup and error checkin...

Code