In this code snippet, we will take a look at COM objects, interop using PInvoke and type marshalling in C#.