Guest User

Untitled

a guest
Jan 22nd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. struct __regHookKeys {
  2. short alt;
  3. short key;
  4. short flag;
  5. short altState;
  6. short altTime;
  7. int countAlt;
  8. } _regHookKeys, *regHookKeys;
  9. int main(int argc, char *argv[])
  10. {
  11. QApplication a(argc, argv);
  12. SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, NULL, NULL);
  13. regHookKeys->alt=1;//тут ошибка
  14. return a.exec();
  15. }
  16.  
  17. regHookKeys->alt=1;
  18.  
  19. regHookKeys = new __regHookKeys;
  20. regHookKeys->alt=1;
Add Comment
Please, Sign In to add comment