回答編集履歴
1
    
        answer	
    CHANGED
    
    | 
         @@ -4,7 +4,7 @@ 
     | 
|
| 
       4 
4 
     | 
    
         
             
            の中盤あたりに、各フックでサポートされる範囲が書いてあります。
         
     | 
| 
       5 
5 
     | 
    
         
             
            WH_KEYBOARD_LL は Global only です。
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
      
 7 
     | 
    
         
            +
            スレッドに対してフックをかける場合は、GetCurrentThreadId で取得した値を使ってください。
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
9 
     | 
    
         
             
            「GetCurrentThreadId function (processthreadsapi.h)」
         
     | 
| 
       10 
10 
     | 
    
         
             
            https://docs.microsoft.com/ja-jp/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentthreadid
         
     |