With the help of .NET runtime interoperability services, we can use the functionality of the Win32 libraries in managed code. The DllImportAttribute class is used to import a Win32 DLL into managed code. In this chapter we saw how to use this class to import Gdi32.dll functions in managed code. We also saw how to use printing and BitBlt functions in managed code.
GDI+ can also be used to write simple and fun drawing applications. This is what we will discuss in Chapter 15. There you will see how GDI+ can be useful for writing fun applications.