深入浅出HOOKS(之肆)[6]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 jaccorporation 的 blog

        end if

    end if

    hookproc = result

end function

 

public function playbackproc(byval icode as long, byval wparam as long, _

        byval lparam as long) as long

    dim result as long

   

    canplay = 1

    result = 0

 

    if icode < 0 then   'icode小于0必须直接调用下一个消息钩子函数

        result = callnexthookex(hplay, icode, wparam, lparam)

    elseif icode = hc_sysmodalon then   '不允许回放

        canplay = 0

    elseif icode = hc_sysmodaloff then  '允许回放

        canplay = 1

    elseif ((canplay = 1) and (icode = hc_getnext)) then

        if bdelay then

            bdelay = false

            result = 50

本文关键:hooks
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top