The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts
How did protected-mode 16-bit Windows fix up jumps to functions that got discarded?
Commenter Neil presumes that Windows 286 and later simply fixed up the movable entry table with jmp selector:offset instructions once and for all. It could ...
How can I query the location of the taskbar on secondary monitors?
A customer wanted to know how to get the location of the taskbar on secondary monitors. "I know that will tell me the location of the taskbar on the primary ...
It's not too late (okay maybe it's too late) to get this gift for the physicist who has everything
A LEGO set to measure Planck's constant...
It rather involved being on the other side of this airtight hatchway: Account vulnerable to Active Directory administrator
A security vulnerability report came in that went something like this: Disclosure of arbitrary data from any user An attacker can obtain arbitrary data from...
If you set up roaming profiles, you are expected to set up each machine identically, for the most part
A customer discovered the following behavior when they set up roaming user profiles on their domain. Consider two machines, 1 and 2. An application&...
When corporate policies meet precision scientific equipment
One of my colleagues used to work as an IT consultant, and one of his clients was a tobacco company. Since they were a tobacco company, the company policy on ...
Notes on calculating constants in SSE registers
There are a few ways to load constants into SSE registers. Load them from memory. Load them from general purpose registers via . Insert selected bits ...
Detecting whether a SID is well-known SID
You might think that the function would tell you whether a SID is well-known, but it doesn't. Rather, it tells you whether a SID exactly matches the well-...
What states are possible in a DRAWITEMSTRUCT structure?
The structure has an member which contains a number of bits describing the state of the item being drawn. How do those states map to the underlying control? ...