by Rob (4 Submissions)
Category: Windows API Call/Explanation
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(2 Votes)
Ever wanted to pass a String to a callback function, only to find out it only accepts Long's as inputs?
Now you can pass in the memory address (A long), then use the string as normal within the function.
Also included are pointer conversions to Two, Four, Eight and Twenty Two bit variables
API DeclarationsPublic Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hwnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal ByteLen As Long)