Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ClrCreateManagedInstance Function

Creates an instance of the specified managed type.


STDAPI ClrCreateManagedInstance (
        [in]  LPCWSTR  pTypeName, 
        [in]  REFIID   riid, 
        [out] void     **ppObject
);

Parameters

pTypeName

[in] A pointer to the name of the instance type being requested.

riid

[in] The IID of the instance type being requested.

ppObject

[out] A pointer to a pointer to an instance of the managed type that was requested by the caller.

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 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.

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: MSCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft