Odd:
Code: Select all
ProcedureDLL RegisterHook(type, callback, instance=0, thread=0)
ProcedureReturn SetWindowsHookEx_(type, callback, instance, thread)
EndProcedure
ProcedureDLL UnregisterHook(type, callback, instance=0, thread=0)
ProcedureReturn UnhookWindowsHookEx_(hook)
EndProcedure
It was the simplest DLL I could find.
Hook.DLL was compiled in 2014 (probably with 5.43 x86)
I took the same code... Hook2.DLL recompiled with 5.51 x86
and everything is fine.
I can remember Danilo posting an example and stating:
Code: Select all
;==================================================================
; Author: Danilo
; Date: November 15, 2013
; Version:
; Requires: Both this program and DLL need to get compiled in same mode: ASCII or UNICODE,
; Or you have to specify mode in PeekS(), for example: PeekS(*test\Echo("testing"),-1,#PB_Unicode)
;==================================================================
This may have something to do with it... I'm not familiar enough with DLL's to know.
- It was too lonely at the top.
System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem