Ok 1 thing for sure.

If you add Imports System.Runtime.InteropServices to the first line of your class, it should clear up your warnings.