请问:我做了一个dll,捕获了全局键盘消息的扫描码,用何函数转换成对应的按键?

解决方案 »

  1.   

    MSDN Virtual-Key Codes
      

  2.   

    参阅:MapVirtualKeyThe MapVirtualKey function translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code. To specify a handle to the keyboard layout to use for translating the specified code, use the MapVirtualKeyEx function. UINT MapVirtualKey(
      UINT uCode,     // virtual-key code or scan code
      UINT uMapType   // translation to perform
    );