64位hook api崩潰,32位沒問題

vivi992 6月前 9579

用的Hook_API這個函數

 

Dim Shared  PMessageBox As Function(ByVal hWnd As hWnd ,ByVal lpText As ZString Ptr ,ByVal lpCaption As ZString Ptr ,ByVal uType As ULong) As Long

------------------------

'替換函數

Function oMessageBox(ByVal hWnd As hWnd ,ByVal lpText As ZString Ptr ,ByVal lpCaption As ZString Ptr ,ByVal uType As ULong) As Long
   Static ret As Long   
   ret = PMessageBox(hWnd ,lpText ,lpCaption ,uType)  
   Function = ret 
End Function

-------------------------

'hook MessageBoxA

 Dim addr As Any Ptr = Hook_API("user32" ,"MessageBoxA" ,@oMessageBox)
 If addr Then   PMessageBox = addr

 

因國家互聯網安全管理要求,關閉回帖功能。大家需要留言,請使用【勇芳軟件客服】即時聯系勇芳點此打開->>勇芳軟件客服
返回
聯系勇芳
一个人看的www视频播放中文_2012中文字幕电影_亚洲国产成人高清在线观看_中文字幕天堂最新版在线网