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 );
[in] The name of the application.
[out] A buffer that contains the version number string upon successful completion.
[in] The length of the version buffer.
[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.
|S_OK||The method completed successfully.|
|ERROR_INSUFFICIENT_BUFFER||The version buffer is not large enough to store the version string.|
Platforms: See System Requirements.
.NET Framework Versions: Available since 1.1
Submit and view feedback for