<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>u338steven</author_name>
  <author_url>https://blog.hatena.ne.jp/u338steven/</author_url>
  <blog_title>B(ug)log</blog_title>
  <blog_url>https://u338steven.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>今日のキーワード： SetWindowsHookEx、WH_KEYBOARD_LL(WH_MOUSE_LL) マルチスレッド グローバルフック やりたいこと メインの UI スレッドとは別スレッドでグローバルフックしたい。 例えば、描画の処理が重い場合、UI スレッドがそちらの処理で手間取り、キーボードやマウスの入力を処理できなくなる可能性があります。そういった場合、別スレッドでキーボード等での入力処理を取り扱いたくなります。 結論から UI スレッド以外で、SetWindowsHookEx を呼び出すときは注意が必要ですよ、というお話。 Why? なぜなのか This hook is cal…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fu338steven.hateblo.jp%2Fentry%2F2016%2F05%2F09%2F222353&quot; title=&quot;マルチスレッドでグローバルフックするときの注意 - B(ug)log&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>2016-05-09 22:23:53</published>
  <title>マルチスレッドでグローバルフックするときの注意</title>
  <type>rich</type>
  <url>https://u338steven.hateblo.jp/entry/2016/05/09/222353</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
