Ill tell you what that c code is supposed to do. I dont know vb.net, maybe someone else can help, sorry.
vtpus = a method that takes a cstring named f and returns an int.
1) A cstring named cbuf that can hold 1024 characters is made.
2) Copy the characters in f to cbuf
3) Invoke vtProcessedTextOut(). Parameter 1 is the string you want to use, and parameter 2 is the length of the string you want to use.
4) return 0
Just so you know, that code u posted wont compile and if f is more than 1024 bytes, youll get a buffer overflow.
for .net, you would make a method, vtputs, that returns an Int32 and takes a String named f.
line1 = vtProcessedTextOut(f, f.Length)
line2 = return 0