Changeset 7353 for trunk/testapp
- Timestamp:
- Nov 16, 2001, 8:36:41 AM (24 years ago)
- Location:
- trunk/testapp
- Files:
-
- 5 added
- 4 edited
-
keyboard/OKeyHook/OKeyHook.cpp (modified) (2 diffs)
-
keyboard/OKeyHook/OKeyHook.h (modified) (1 diff)
-
keyboard/OKeyTest/OKeyTest.cpp (modified) (1 diff)
-
keyboard/OKeyTest/OKeyTest.h (modified) (1 diff)
-
network (added)
-
network/OIPHLP (added)
-
network/OIPHLP/OIPHLP.dsp (added)
-
network/OIPHLP/OIPHLP.dsw (added)
-
network/OIPHLP/oiphlp.cpp (added)
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 -
trunk/testapp/keyboard/OKeyTest/OKeyTest.cpp
r7152 r7353 245 245 default: pszMsg = "unknown"; break; 246 246 } 247 248 // get key name 249 CHAR szBufKey[40]; 250 GetKeyNameText(lParam, szBufKey, sizeof(szBufKey)); 247 251 248 wsprintf(szBuf, "%08xh %16s (%08xh, %08xh) ",252 wsprintf(szBuf, "%08xh %16s (%08xh, %08xh) name=[%s]", 249 253 hwnd, 250 254 pszMsg, 251 255 wParam, 252 lParam); 256 lParam, 257 szBufKey); 253 258 254 259 logString(lpstrOrigin, szBuf); -
trunk/testapp/keyboard/OKeyTest/OKeyTest.h
r7152 r7353 1 // Windows Header Files:2 #include <windows.h>3 4 // C RunTime Header Files5 #include <stdlib.h>6 #include <malloc.h>7 #include <memory.h>8 #include <tchar.h>9 10 1 11 2 #if !defined(AFX_OKEYTEST_H__05D06965_C6DD_11D5_B6AE_004854D1C794__INCLUDED_)
Note:
See TracChangeset
for help on using the changeset viewer.
