卸载键盘快捷键 - UnregisterHotkey
函数简介
- 卸载键盘快捷键监听
接口名称
UnregisterHotkey
DLL调用
int UnregisterHotkey(long ola, int keycode, int modifiers)
参数定义:
ola
(长整型数): OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。keycode
(整型数): 按键码modifiers
(整型数): 修饰键组合,使用Modifier枚举值的位或组合,比如按下Ctrl+Alt modifiers:2+8=10 具体取值如下:- 左Shift键掩码(值1)
- 左Ctrl键掩码(值2)
- 左Meta键掩码(值4)
- 左Alt键掩码(值8)
- 右Shift键掩码(值16)
- 右Ctrl键掩码(值32)
- 右Meta键掩码(值64)
- 右Alt键掩码(值128)
返回值
卸载监听状态
整型数:
1 : 成功
0 : 失败