Ignore:
Timestamp:
Nov 16, 2001, 8:36:41 AM (24 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testapp/keyboard/OKeyHook/OKeyHook.cpp

    r7152 r7353  
    22//
    33
     4#include "stdafx.h"
    45#include "OKeyHook.h"
    56
     
    140141        DWORD dwExtra = GetMessageExtraInfo();
    141142
    142         // log the message
     143        // get the key's name
     144        CHAR szBufKey[40];
     145        GetKeyNameText(lParam, szBufKey, sizeof(szBufKey));
     146       
    143147        // log the message
    144148        CHAR szBuf[512];
    145149        wsprintf(szBuf,
    146                 "nCode=%08xh, wParam=%08xh, lParam=%08xh, extra=%08xh",
     150                "nCode=%08xh, wParam=%08xh, lParam=%08xh, extra=%08xh, name=%s",
    147151                nCode,
    148152                wParam,
    149153                lParam,
    150                 dwExtra);
     154                dwExtra,
     155                szBufKey);
    151156
    152157    pfnLogString("KeyHook", szBuf);
Note: See TracChangeset for help on using the changeset viewer.