Changeset 7353 for trunk/testapp/keyboard/OKeyHook
- Timestamp:
- Nov 16, 2001, 8:36:41 AM (24 years ago)
- Location:
- trunk/testapp/keyboard/OKeyHook
- Files:
-
- 2 edited
-
OKeyHook.cpp (modified) (2 diffs)
-
OKeyHook.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/testapp/keyboard/OKeyHook/OKeyHook.cpp
r7152 r7353 2 2 // 3 3 4 #include "stdafx.h" 4 5 #include "OKeyHook.h" 5 6 … … 140 141 DWORD dwExtra = GetMessageExtraInfo(); 141 142 142 // log the message 143 // get the key's name 144 CHAR szBufKey[40]; 145 GetKeyNameText(lParam, szBufKey, sizeof(szBufKey)); 146 143 147 // log the message 144 148 CHAR szBuf[512]; 145 149 wsprintf(szBuf, 146 "nCode=%08xh, wParam=%08xh, lParam=%08xh, extra=%08xh ",150 "nCode=%08xh, wParam=%08xh, lParam=%08xh, extra=%08xh, name=%s", 147 151 nCode, 148 152 wParam, 149 153 lParam, 150 dwExtra); 154 dwExtra, 155 szBufKey); 151 156 152 157 pfnLogString("KeyHook", szBuf); -
trunk/testapp/keyboard/OKeyHook/OKeyHook.h
r7152 r7353 1 2 // Windows Header Files:3 #include <windows.h>4 5 // C RunTime Header Files6 #include <stdlib.h>7 #include <malloc.h>8 #include <memory.h>9 #include <tchar.h>10 1 11 2 // The following ifdef block is the standard way of creating macros which make exporting
Note:
See TracChangeset
for help on using the changeset viewer.
