Lots of copy-pasta from C# to Pascal

Now to fix all the language differences...
Some progress on C# to Pascal conversion
Commented out tons of stuff to make it compile, to see if go32v2 would compile and run (and it does!)