Tag
The article discusses the highest legal FILETIME value in Windows programming, its limitations, and recommends using sentinel values cautiously to prevent overflow and compatibility issues.
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.
The article explains how to reduce C++ template bloat by factoring out type-dependent portions of functions, using a practical example with Windows DispatcherQueueHandler to de-templatize code.
This blog post presents a C++ helper class using the Windows Implementation Library (WIL) to manage LPPROC_THREAD_ATTRIBUTE_LIST allocations with RAII, offering both throwing and non-throwing variants.
Explains how to use the COPY_FILE_NO_BUFFERING flag with CopyFileEx and CopyFile2 to copy files using unbuffered handles, and why the progress callback cannot be used to change buffering after the handles are opened.
Explains that FILE_FLAG_DELETE_ON_CLOSE is irreversible, but you can achieve conditional deletion by using SetFileInformationByHandle to toggle the delete disposition.
This article describes a constant-space linear-time algorithm using a min-priority queue to delete all but the 10 most recent files in a directory, avoiding the O(n) space of sorting all entries.