COM components are accessed from the .NET Framework by use of a runtime callable wrapper (RCW). Specifically, .NET Framework components are accessed from COM by using a COM callable wrapper (CCW).
use the Win32 API from a .NET Framework program using platform invoke --DllImport("