old-new-thing

Tag

Cards List
#old-new-thing

Why didn’t Read­Directory­ChangesW provide a way to correlate the two sides of a rename operation?

The Old New Thing (Raymond Chen) ↗ · 2026-09-14 Cached

Raymond Chen explains why the Windows API ReadDirectoryChangesW doesn't provide correlation for rename operations, due to an unwritten assumption that rename events are sequential, which may not hold with concurrent activities.

0 favorites 0 likes
#old-new-thing

Creating a fake agile wrapper that is technically agile but is not useful outside its home apartment, part 3

The Old New Thing (Raymond Chen) ↗ · 2026-08-05 Cached

Raymond Chen continues his series on creating a fake agile wrapper for non-marshalable COM objects by wrapping them in a marshalable object, enabling registration in the global interface table while preserving undefined-behavior-free failures in other apartments.

0 favorites 0 likes
#old-new-thing

Speculating on how the buggy control panel extension truncated a value that it had right in front of it

The Old New Thing (Raymond Chen) ↗ · 2026-07-16 Cached

Raymond Chen speculates on how a buggy control panel extension caused a crash by truncating a 64-bit pointer to 32 bits, likely due to incomplete code updates during 64-bit porting.

0 favorites 0 likes
#old-new-thing

How did Windows 95 decide that a setup program ran?

The Old New Thing (Raymond Chen) ↗ · 2026-07-07 Cached

Raymond Chen explains how Windows 95 guessed whether a program was a setup program by checking the executable name for magic words like 'setup' or 'install'.

0 favorites 0 likes
#old-new-thing

What does it mean when the bottom bit of my HMODULE is set?

The Old New Thing (Raymond Chen) ↗ · 2026-06-19 Cached

This article explains that the Windows loader sets the bottom bit of an HMODULE handle to indicate the DLL was loaded as a data file (LOAD_LIBRARY_AS_DATAFILE), affecting resource lookup and freeing behavior without adding it to the module list.

0 favorites 0 likes
← Back to home

Submit Feedback