Creates an instance of the specified managed type.
STDAPI ClrCreateManagedInstance ( [in] LPCWSTR pTypeName, [in] REFIID riid, [out] void **ppObject );
The common language runtime should already be loaded into a process. For example, it can be loaded by using a call to the CorBindToRuntimeEx function before the ClrCreateManagedInstance function is called. If the runtime is not loaded, ClrCreateManagedInstance first tries to load v1.0.3705 of the runtime. If that fails, it attempts to load the latest version of the runtime.