Starting with the .NET Compact Framework version 2.0, you can perform direct COM interop, use the MarshalAsAttribute, and have an increased set of types you can marshal.
Describes providing unmanaged code access to managed components.
Describes providing managed code access to COM components.
Discusses differences in the .NET Compact Framework for using platform invoke to call a native component such as a DLL file.
Discusses differences in the .NET Compact Framework for marshaling data types between managed and unmanaged code.
Also describes how to set a registry key to perform interop logging.
Describes advanced programming techniques for interoperating with native controls.
Provides a class for implementing managed window procedures as described in How to: Subclass a TreeView by Using Native Callbacks.
Describes subclassing the TreeView control to create an implementation of the NodeMouseClick event.
Describes subclassing the Button control to display a colorful gradient fill.
Provides helper functions used for subclassing controls as described in in How to: Subclass a TreeView by Using Native Callbacks.
Describes how to use the MessageWindow and Message class in the Microsoft.WindowsCE.Forms namespace. This example does not require a native component.
Describes interoperability services in the full .NET Framework.