Ignore:
Timestamp:
Jun 24, 2012, 10:42:30 PM (11 years ago)
Author:
roman
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/ConsoleKeyboardHook/ConsoleKeyboardHook.cpp

    r69 r70  
    1111  HWND consoleWindow = GetConsoleWindow();
    1212  HINSTANCE hInstCons = (HINSTANCE)GetWindowLong( consoleWindow, GWL_HINSTANCE );
     13
     14  // NOTE: This has to be NULL
     15  hInstCons = NULL;
     16
    1317  hKeyboardHook = SetWindowsHookEx( WH_KEYBOARD, (HOOKPROC)KeyboardCallback, hInstCons, GetCurrentThreadId());
     18  _tprintf(_T("consoleWindow 0x%p, hInstCons 0x%p, hKeyboardHook 0x%p\n"), consoleWindow, hInstCons, hKeyboardHook);
    1419
    1520  MessageBox(NULL, _T("It is keyboard time!"), _T("Let's Go"), MB_OK);
Note: See TracChangeset for help on using the changeset viewer.