<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Windows</anon>
  </categories>
  <description>これまで使ったことのなかったReadDirectoryChangesと非同期IOのメモです。ReadDirectoryChangesは同期I/O（関数を呼び出すと処理終了までスレッドを止める）と非同期I/O（関数呼び出しはすぐに終わり、スレッドは呼び出し側が止める）の2つのI/O方式を使用できます。非同期I/Oの場合はイベントの使用有無で待機方法が変わります。 コードの方が説明しやすいので動作確認用のコードを以下に記載します。動作確認環境はMSVC &amp; C++20です。 以下は未確認または放置事項です。 非同期I/OのコードでSleepExやWaitForSingleObjectExの外でI/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2026%2F09%2F17%2F044626&quot; title=&quot;C++&amp;amp;Windows ReadDirectoryChangesの使い方メモ - potisanのプログラミングメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-09-17 04:46:26</published>
  <title>C++&amp;Windows ReadDirectoryChangesの使い方メモ</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2026/09/17/044626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
