Other Unmanaged Functions on mscoree.dll


Although CorBindToRuntimeEx is the most commonly used export from mscoree.dll, it is probably not the only one you'll ever use. Table 2-3 briefly describes some of the other commonly used exports that are of interest to hosts.

Table 2-3. Other Commonly Used Exports from mscoree.dll

API Name

Description

GetCORVersion

Returns the version of the CLR that is loaded in the process. GetCORVersion returns null if called before the CLR is started.

GetCORSystemDirectory

Returns the directory on disk in which the loaded CLR is installed (see Figure 2-2). This function is useful for locating compilers and others tools that are located in the CLR installation directory.

LockClrVersion

Enables you to register a callback so you can lazily control CLR initialization.

GetRequestedRuntimeInfo

Enables you to determine whether a given version of the CLR is present on the machine.




    Customizing the Microsoft  .NET Framework Common Language Runtime
    Customizing the Microsoft .NET Framework Common Language Runtime
    ISBN: 735619883
    EAN: N/A
    Year: 2005
    Pages: 119

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net