I am updating a bit of software that was written in VB6.

The program basically just returns the titlebar text of all top level windows using the EnumWindows API.

How would I do it in vb.Net?

I can't seem to find any similar functions and interop is beyond me at this point