- Timestamp:
- Jun 24, 2012, 10:42:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/ConsoleKeyboardHook/ConsoleKeyboardHook.cpp
r69 r70 11 11 HWND consoleWindow = GetConsoleWindow(); 12 12 HINSTANCE hInstCons = (HINSTANCE)GetWindowLong( consoleWindow, GWL_HINSTANCE ); 13 14 // NOTE: This has to be NULL 15 hInstCons = NULL; 16 13 17 hKeyboardHook = SetWindowsHookEx( WH_KEYBOARD, (HOOKPROC)KeyboardCallback, hInstCons, GetCurrentThreadId()); 18 _tprintf(_T("consoleWindow 0x%p, hInstCons 0x%p, hKeyboardHook 0x%p\n"), consoleWindow, hInstCons, hKeyboardHook); 14 19 15 20 MessageBox(NULL, _T("It is keyboard time!"), _T("Let's Go"), MB_OK);
Note: See TracChangeset
for help on using the changeset viewer.