VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Pointer Manipulation

Rob  (4 Submissions)   Windows API Call/Explanation   Advanced   Wed 3rd February 2021

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 Declarations
Public 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)

Rate Pointer Manipulation (2(2 Vote))

Download Pointer Manipulation

Pointer Manipulation Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters