Collapse the table of content
Expand the table of content
Expand Minimize

GetFileVersion Function

Gets the common language runtime (CLR) version information of the specified file, using the specified buffer.

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

HRESULT GetFileVersion (
    [in]  LPCWSTR      szFilename, 
    [in, out] LPWSTR   szBuffer, 
    [in]  DWORD        cchBuffer, 
    [out] DWORD        *dwLength


[in] The path of the file to be examined.


[in, out] The buffer allocated for the version information that is returned.


[in] The size, in wide characters, of szBuffer.


[out] The size, in bytes, of the returned szBuffer.

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.h

.NET Framework Versions: 4.6, 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
© 2015 Microsoft