Creation Context
When a native resource instance is created, the call stack and the instance are associated with a creation context. The creation context indicates how the resource instance was created. Below is a presentation of the different creation contexts that exist:
Managed runtime
The "managed runtime" creation context indicates that the instance was created by the runtime itself, e.g., internal structures used when loading classes and JITting.
Unmanaged interop
The "unmanaged interop" creation context indicates that the instance was created using a P/Invoke call, i.e., by managed code that makes a call to an unmanaged function.
Other unmanaged
The "other unmanaged" creation context indicates that the instance was created by a thread that has not run any managed code.