GetRequestedRuntimeVersion Function

Gets the version number of the common language runtime (CLR) requested by the specified application. If that version is not installed, gets the most recent version that is installed before the requested version.

This function has been deprecated in the .NET Framework 4.

HRESULT GetRequestedRuntimeVersion (
    [in]  LPWSTR  pExe, 
    [out] LPWSTR  pVersion, 
    [in]  DWORD   cchBuffer, 
    [out] DWORD  *pdwLength
);

pExe

[in] The name of the application.

pVersion

[out] A buffer that contains the version number string upon successful completion.

cchBuffer

[in] The length of the version buffer.

pdwLength

[out] A pointer to the length of the version number string.

This method returns standard Component Object Model (COM) error codes, as defined in WinError.h, in addition to the following values.

Return code

Description

S_OK

The method completed successfully.

ERROR_INSUFFICIENT_BUFFER

The version buffer is not large enough to store the version string.

E_POINTER

pdwLength is null.

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.h

Library: MSCorEE.dll

.NET Framework Versions: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft