.
Summary
Determines whether the operating system can retrieve version information for a specified file. If version information is available,
GetFileVersionInfoSize returns the size, in bytes, of that information.
C# Signature:
[DllImport("Api-ms-win-core-version-l1-1-0.dll")]
static extern int GetFileVersionInfoSize(string fileName, [Out]IntPtr dummy);
VB Signature:
Declare Function GetFileVersionInfoSize Lib "Api-ms-win-core-version-l1-1-0.dll" (fileName As String, <Out> dummy As IntPtr) As Integer
User-Defined Types:
None.
Alternative Managed API:
Do you know one? Please contribute it!
Notes:
Use this declaration on Windows 10. On previous versions use http://pinvoke.net/default.aspx/version/GetFileVersionInfoSize.html
Tips & Tricks:
Please add some!
Sample Code:
GetFileVersionInfoSize(@"c:\someFolder\someFile.dll", IntPtr.Zero);
Documentation
Determines whether the operating system can retrieve version information for a specified file. If version information is available, GetFileVersionInfoSize returns the size, in bytes, of that information.
3/29/2017 11:22:24 AM - -178.121.194.173