GetCORSystemDirectory Function

Returns the installation directory of the common language runtime (CLR) that is loaded into the process. The installation directory is fully qualified, for example, "c:\windows\\framework\v1.0.3705".

HRESULT GetCORSystemDirectory ( 
        [out] LPWSTR  pbuffer,   
        [in]  DWORD   cchBuffer, 
        [out] DWORD*  dwlength



[out] A buffer in which the runtime returns a string that contains the fully qualified name of the installation directory for the runtime that is loaded into the process. If the runtime has not yet been loaded into the process, the function returns the appropriate directory information for the latest version of the runtime installed on the computer.


[in] The size, in bytes, of pbuffer.


[out] The number of characters returned in pbuffer.

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

Header: MSCorEE.idl

Library: MSCorEE.dll

.NET Framework Version: 2.0, 1.1, 1.0