Changeset 70
- Timestamp:
- Jun 24, 2012, 10:42:30 PM (11 years ago)
- Location:
- trunk/Utilities/ConsoleKeyboardHook
- Files:
-
- 3 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); -
trunk/Utilities/ConsoleKeyboardHook/ConsoleKeyboardHook.vcxproj
r69 r70 64 64 <IntrinsicFunctions>true</IntrinsicFunctions> 65 65 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 66 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 66 67 </ClCompile> 67 68 <Link>
Note: See TracChangeset
for help on using the changeset viewer.