The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Raymond Chen
Raymond Chen
Dec 19, 2014

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 ...

0
0
Raymond Chen
Raymond Chen
Dec 18, 2014

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 ...

0
0
Raymond Chen
Raymond Chen
Dec 17, 2014

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...

0
0
Raymond Chen
Raymond Chen
Dec 17, 2014

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...

0
1
Raymond Chen
Raymond Chen
Dec 16, 2014

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&...

0
0
Raymond Chen
Raymond Chen
Dec 15, 2014

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 ...

0
0
Raymond Chen
Raymond Chen
Dec 15, 2014

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 ...

0
0
Raymond Chen
Raymond Chen
Dec 12, 2014

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-...

0
0
Raymond Chen
Raymond Chen
Dec 11, 2014

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? ...

0
0