Share via


Platform Invoke Sample

The platform invoke samples demonstrate how to call functions exported from an unmanaged library: how to declare different types, how to use available attributes to modify default behavior, how to use methods of the Marshal class when needed, and which aspects of garbage collection and threading could affect results.

Readme Location

For more information, see the Readme file at <SDK>v1.1\Samples\Technologies\Interop\PlatformInvoke

Concepts Presented in This Sample

platform invoke, samples; Marshal class, samples; StructLayout class, samples; CharSet class, samples; LayoutKind class, samples; MarshalAs class, samples; UnmanagedType class, samples; DllImportAttribute class, samples