You're trying to call Windows API methods that aren't directly accessible from .Net.
You need to import the
System.Runtime.InteropServices
and learn about
Invoke
. Go to tis site for windows API prototypes for .Net:
pinvoke.net[
^]
They have both VB and C# examples for most functions.