P/Invokes and Unmanaged Code

One of the biggest benefits of the .NET Framework is that the technology is a bridge between you and the Windows operating system and is responsible for managing a lot of system features (such as memory management) highly reducing the risk of bad system resources management that could lead the system to unwanted crashes or problems. This is the reason why (as you may recall from Chapter 1, “Introducing the .NET Framework 4.0”) .NET programming is also known as managed. The .NET Framework base class library exposes managed wrappers for most of the Windows API system so that you do not need to manually handle system resources, and you can take all advantages from the CLR. By the way, there are situations in which ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.