Hi, first, my english isn't good, sorry. I'm spanish.
I have developing an Access application, and I found a code for create a hook of the keyboard for look the Alt+Tab, Alt+Esc and Ctrl+Esc keys in WinNT/2000/XP. It call to a SetWindowsHookEx API function.
This works OK in Visual Basic 6, but in Access XP not works. The "App.hInstance" isn't good for Access. I try replace "App.hInstance" with "Screen.Application.hWnd"
and with "Application.hWndAccessApp", but not work, mHook always return 0, while in VB6, mHook return any long value and look the keys.
Here, the code for Hook the Keyword for VB6:
Dim mHook as Long
mHook = SetWindowsHookEx(WH_KEYBOARD_LL, AddressOf LLKeyBoardProc, App.hInstance, 0&)
Please any alternative for Access with "App.hInstance" in VB????
Thanks
I have developing an Access application, and I found a code for create a hook of the keyboard for look the Alt+Tab, Alt+Esc and Ctrl+Esc keys in WinNT/2000/XP. It call to a SetWindowsHookEx API function.
This works OK in Visual Basic 6, but in Access XP not works. The "App.hInstance" isn't good for Access. I try replace "App.hInstance" with "Screen.Application.hWnd"
and with "Application.hWndAccessApp", but not work, mHook always return 0, while in VB6, mHook return any long value and look the keys.
Here, the code for Hook the Keyword for VB6:
Dim mHook as Long
mHook = SetWindowsHookEx(WH_KEYBOARD_LL, AddressOf LLKeyBoardProc, App.hInstance, 0&)
Please any alternative for Access with "App.hInstance" in VB????
Thanks