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.
HRESULT GetRequestedRuntimeVersion ( [in] LPWSTR pExe, [out] LPWSTR pVersion, [in] DWORD cchBuffer, [out] DWORD *pdwLength );
This method returns standard Component Object Model (COM) error codes, as defined in WinError.h, in addition to the following values.
The method completed successfully.
The version buffer is not large enough to store the version string.
pdwLength is null.