Ask the Expert

Using API with VB.NET

I have been programming with VB.NET for almost a year now. There are times when I need some kind of functionality or control over something and people tell me to use the API functionality of the OS. I am very interested in learning how to use the API with VB.NET. Can you provide me with some abstract guidance on this?
At some point in your .NET programming, you're always going to have to jump outside the safe confines of the Framework Class Library and ask the OS to do some work for you that you can't get anywhere else. Fortunately, the interoperability layers in .NET programming make it relatively easy, provided you understand C programming and Windows idiosyncrasies, both of which are hard to chew if you've never seen them before.

Probably the best advice I can give you is to get the following book: Dan Appleman's Visual Basic Programmer's Guide to the Win32 API. (Yes, the author's name is part of the title. It must make him feel important :P ) While the book is written for Visual Basic 6, it will guide you into the opportunities and Visual Basic types you'll need to translate into Visual Basic .NET. You'll also want to start reading how to do interop at

This was first published in September 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: