我看了一个程序 有3个问题
LRESULT CALLBACK KeyHook(int ncode,WPARAM wparam,LPARAM lparam)
{
LRESULT Result=CallNextHookEx(Hook1,ncode,wparam,lparam);
if (ncode==HC_ACTION) //1.ncode什么意思
{
if(lparam &0x80000000) //2.什么意思为什么用0x80000000
{ //纪录wparam;
}
}}
3.可是为什么都是大写?
LRESULT CALLBACK KeyHook(int ncode,WPARAM wparam,LPARAM lparam)
{
LRESULT Result=CallNextHookEx(Hook1,ncode,wparam,lparam);
if (ncode==HC_ACTION) //1.ncode什么意思
{
if(lparam &0x80000000) //2.什么意思为什么用0x80000000
{ //纪录wparam;
}
}}
3.可是为什么都是大写?
[in] Specifies the hook code passed to the current hook procedure. The next hook procedure uses this code to determine how to process the hook information. 2、检测是否为扩展键,例如insert等键
3、大写??不太清楚你指什么?HC_ACTION等都是VC定义的常量