GetFileVersionInfoSizeEx function version
Win32Result<int>
GetFileVersionInfoSizeEx(
- GET_FILE_VERSION_INFO_FLAGS dwFlags,
- PCWSTR lpwstrFilename,
- Pointer<
Uint32> lpdwHandle
Determines whether the operating system can retrieve version information for a specified file.
If version information is available, GetFileVersionInfoSizeEx returns the size, in bytes, of that information.
To learn more, see learn.microsoft.com/windows/win32/api/winver/nf-winver-getfileversioninfosizeexw.
Implementation
Win32Result<int> GetFileVersionInfoSizeEx(
GET_FILE_VERSION_INFO_FLAGS dwFlags,
PCWSTR lpwstrFilename,
Pointer<Uint32> lpdwHandle,
) {
resolveGetLastError();
final result_ = _GetFileVersionInfoSizeEx(
dwFlags,
lpwstrFilename,
lpdwHandle,
);
return .new(value: result_, error: GetLastError());
}