I personally don't understand how that code works but all I know that it pushes the params into the address but still, don't think it's possible in VB.
Anyway that code can only be run from a DLL which is injected into the game so you're outta luck. You may want to look at House Black RC2's source, might find something. Doubt it though.