Dreamweaver
Well-known member
- Local time
- Today, 20:20
- Joined
- Nov 28, 2005
- Messages
- 2,467
This is the 32 bit API call
The 64 bit version edits in blue
This compiles and works without issue and may be a little faster but I'm on a 32 bit system so haven't been able to test for 64
Code:
Declare Function adh_apiSendMessage Lib "user32" Alias "SendMessageA" _
(ByVal Hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
The 64 bit version edits in blue
Code:
Declare [COLOR=navy]PtrSafe[/COLOR] Function adh_apiSendMessage Lib "user32" Alias "SendMessageA" _
(ByVal Hwnd As [COLOR=navy]LongPtr[/COLOR], ByVal wMsg As [COLOR=navy]LongPtr[/COLOR], ByVal wParam As [COLOR=navy]LongPtr[/COLOR], lParam As Any) As [COLOR=navy]LongPtr[/COLOR]
This compiles and works without issue and may be a little faster but I'm on a 32 bit system so haven't been able to test for 64