Chapter 12. Interacting with Unmanaged Code

This final section of the book addresses interoperability between .NET code and the wider world of Microsoft Windows applications. As you can imagine, .NET code can’t live in a vacuum and will have to call (and be called from) code outside the .NET world. Microsoft has put a considerable amount of work into ensuring .NET applications can work simply and effectively with existing Windows code.

This chapter describes the functionality .NET provides for interoperating between managed code (which is executed by the common language runtime) and unmanaged (or native) code. In addition to exploring the differences between managed and unmanaged code, this chapter will introduce the Platform Invoke mechanism by ...

Get COM Programming with Microsoft® .NET 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.