GetCORVersion Function
This page is specific to:.NET Framework Version:
.NET Framework General Reference
GetCORVersion Function

Returns the version number of the common language runtime (CLR) that is running in the current process.

HRESULT GetCORVersion (
    [in] LPWSTR  pbuffer,
    [in]  DWORD   cchBuffer, 
    [out] DWORD*  dwlength
); 
Parameters

pbuffer

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.

cchBuffer

The number of characters (WCHARs) that can be held in pbuffer.

dwLength

A pointer to the number of characters actually returned in pbuffer. If 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.

Requirements

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.idl

Library: MSCorEE.dll

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Other Resources

© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View