VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Pointer Manipulation

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 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

Download Pointer Manipulation

Download Pointer Manipulation (2 KB)

Pointer Manipulation Comments

No comments have been posted about Pointer Manipulation. Why not be the first to post a comment about Pointer Manipulation.

Post your comment

Subject:
Message:
0/1000 characters