hook showDialog

murakami

Известный
Автор темы
131
13
AutoHotKey:
hookaddress := dwSAMP + FUNC_SAMP_SHOWDIALOG
showDialog := New MinHook("", hookaddress , "showDialog_Hook")
showDialog.Enable()
Return

showDialog_Hook(this,wID, iStyle, szCaption, szText, szButton1, szButton2, bSend)
{
global showDialog
return DllCall(showDialog.original,"PTR",this, "UInt",wID,"UInt",iStyle,"Ptr", szCaption, "Ptr", szText, "Ptr", szButton1, "Ptr", szButton2, "Int", bSend)
}

No dialog is output. Did I dllcall type wrong? Hope someone can help me.
 
Последнее редактирование: