old-new-thing

标签

Cards List
#old-new-thing

为什么 ReadDirectoryChangesW 没有提供一种方式来关联重命名操作的两侧?

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

Raymond Chen 解释了为什么 Windows API ReadDirectoryChangesW 没有为重命名操作提供关联功能,这是由于一个未写明的假设,即重命名事件是顺序发生的,这在并发活动中可能不成立。

0 人收藏 0 人点赞
#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 缓存

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 人收藏 0 人点赞
#old-new-thing

推测故障控制面板扩展如何截断了它面前的值

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

Raymond Chen 推测故障控制面板扩展如何因将64位指针截断为32位而导致崩溃,可能是由于64位移植过程中代码更新不完整。

0 人收藏 0 人点赞
#old-new-thing

Windows 95 如何判断一个安装程序正在运行?

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

Raymond Chen 解释了 Windows 95 如何通过检查可执行文件名中是否包含“setup”或“install”等魔法词来判断一个程序是否为安装程序。

0 人收藏 0 人点赞
#old-new-thing

我的 HMODULE 的最低位置位意味着什么?

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

本文解释了 Windows 加载器通过设置 HMODULE 句柄的最低位来指示该 DLL 是作为数据文件加载的(LOAD_LIBRARY_AS_DATAFILE),这会影响资源查找和释放行为,且不会将其添加到模块列表中。

0 人收藏 0 人点赞
← 返回首页

提交意见反馈