Unmanaged (native) library loading algorithm

本文内容

Unmanaged libraries are located and loaded with an algorithm involving various stages.

The following algorithm describes how native libraries are loaded through PInvoke.

PInvoke load library algorithm

PInvoke uses the following algorithm when attempting to load an unmanaged assembly: