Returns the version number of the common language runtime (CLR) that is running in the current process.
This function has been deprecated in the .NET Framework 4.
HRESULT GetCORVersion ( [in] LPWSTR pbuffer, [in] DWORD cchBuffer, [out] DWORD* dwlength );
A pointer to a buffer in which the CLR returns a string specifying the version of the runtime that is currently loaded into the process. The returned string takes the same form as strings passed to CorBindToRuntimeEx, for example, "v1.0.1216". 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.
The number of characters (
WCHARs) that can be held in
A pointer to the number of characters actually returned in
pbuffer is a null pointer, the runtime returns E_POINTER. If the number of characters is greater then the length of
pbuffer , the runtime returns ERROR_INSUFFICIENT_BUFFER.
Platforms: See System Requirements.
.NET Framework Versions: Available since 1.0