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). This reduces the risk of bad system resources management that could lead the system to unwanted crashes or problems. This is the reason (as you might recall from Chapter 1, “Introducing .NET 2015”) that .NET programming is also known as managed. The .NET Framework Base Class Library (BCL) exposes managed wrappers for most of the Windows API system so that you do not need to manually handle system resources. It also enables you to reap all the benefits of the CLR. By the way, in some situations you still ...

Get Visual Basic 2015 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.